1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<!-- Layout of a header item in PreferenceActivity. This is modified from the platform
18     preference_header_item-->
19
20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:minHeight="48dp"
24    android:background="?android:attr/activatedBackgroundIndicator"
25    android:gravity="center_vertical"
26    android:paddingEnd="?android:attr/scrollbarSize">
27
28    <RelativeLayout
29        android:layout_width="wrap_content"
30        android:layout_height="wrap_content"
31        android:layout_marginStart="@dimen/preference_side_margin"
32        android:layout_marginEnd="@dimen/preference_side_margin"
33        android:layout_weight="1"
34        android:paddingTop="@dimen/preference_padding_top"
35        android:paddingBottom="@dimen/preference_padding_bottom">
36
37        <TextView android:id="@+id/title"
38            android:layout_width="wrap_content"
39            android:layout_height="wrap_content"
40            android:singleLine="true"
41            android:textAppearance="?android:attr/textAppearance"
42            android:textSize="16sp"
43            android:textColor="@color/setting_primary_color"
44            android:ellipsize="marquee"
45            android:fadingEdge="horizontal" />
46
47        <TextView android:id="@+id/summary"
48            android:layout_width="wrap_content"
49            android:layout_height="wrap_content"
50            android:layout_below="@id/title"
51            android:layout_alignStart="@id/title"
52            android:textAppearance="?android:attr/textAppearanceSmall"
53            android:textColor="@color/setting_secondary_color"
54            android:lineSpacingExtra="@dimen/preference_summary_line_spacing_extra"
55            android:ellipsize="end"
56            android:maxLines="2" />
57
58    </RelativeLayout>
59
60</LinearLayout>