blob: adbd5c91edbf147325ed244d1c9faa0d1f32ded6 [file] [log] [blame]
Steve Kondik66ac5d72016-09-03 16:24:26 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2006 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 for a Preference in a PreferenceActivity. The
18 Preference is able to place a specific widget for its particular
19 type in the "widget_frame" layout. -->
20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21 android:id="@android:id/widget_frame"
22 android:layout_width="match_parent"
23 android:layout_height="wrap_content"
24 android:minHeight="?android:attr/listPreferredItemHeightSmall"
25 android:gravity="center_vertical"
26 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
27 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
28 android:background="?android:attr/selectableItemBackground">
29
30 <ImageView
31 android:id="@+id/icon"
32 android:layout_width="wrap_content"
33 android:layout_height="wrap_content"
34 android:layout_marginEnd="12dip"
35 android:padding="2dp"
36 android:maxWidth="36dip"
37 android:maxHeight="36dip"
38 android:adjustViewBounds="true"
39 android:layout_gravity="center" />
40
41 <RelativeLayout
42 android:layout_width="wrap_content"
43 android:layout_height="wrap_content"
44 android:layout_marginStart="2dip"
45 android:layout_marginEnd="6dip"
46 android:layout_marginTop="6dip"
47 android:layout_marginBottom="6dip"
48 android:layout_weight="1">
49
50 <TextView android:id="@android:id/title"
51 android:layout_width="wrap_content"
52 android:layout_height="wrap_content"
53 android:singleLine="true"
54 android:textAppearance="@android:style/TextAppearance.Material.Subhead"
55 android:textColor="?android:attr/textColorPrimary"
56 android:ellipsize="marquee"
57 android:fadingEdge="horizontal" />
58
59 <TextView android:id="@android:id/summary"
60 android:layout_width="wrap_content"
61 android:layout_height="wrap_content"
62 android:layout_below="@android:id/title"
63 android:layout_alignStart="@android:id/title"
64 android:textAppearance="@android:style/TextAppearance.Material.Body1"
65 android:textColor="?android:attr/textColorSecondary"
66 android:maxLines="2" />
67
68 </RelativeLayout>
69
70</LinearLayout>