blob: bbb79bcb7631293118ac496ce2d6410ad7788db9 [file] [log] [blame]
Nancy Chenbbde5652014-07-21 15:19:35 -07001<?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 <ImageView
29 android:id="@+id/icon"
30 android:layout_width="wrap_content"
31 android:layout_height="wrap_content"
32 android:layout_marginStart="6dip"
33 android:layout_marginEnd="6dip"
34 android:layout_gravity="center" />
35
36 <RelativeLayout
37 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"
39 android:layout_marginStart="@dimen/preference_side_margin"
40 android:layout_marginEnd="@dimen/preference_side_margin"
41 android:layout_weight="1"
42 android:paddingTop="@dimen/preference_padding_top"
43 android:paddingBottom="@dimen/preference_padding_bottom">
44
45 <TextView android:id="@+id/title"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:singleLine="true"
49 android:textAppearance="?android:attr/textAppearance"
50 android:textSize="16sp"
51 android:textColor="@color/setting_primary_color"
52 android:ellipsize="marquee"
53 android:fadingEdge="horizontal" />
54
55 <TextView android:id="@+id/summary"
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
58 android:layout_below="@id/title"
59 android:layout_alignStart="@id/title"
60 android:textAppearance="?android:attr/textAppearanceSmall"
61 android:textColor="@color/setting_secondary_color"
62 android:lineSpacingExtra="@dimen/preference_summary_line_spacing_extra"
63 android:ellipsize="end"
64 android:maxLines="2" />
65
66 </RelativeLayout>
67
68</LinearLayout>