blob: fd34b75518635d82279742968db0e16547c5acbf [file] [log] [blame]
Juan Ezquerro LLanesbd134a72018-05-22 23:11:23 +02001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 The OmniROM Project
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 -->
17
18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="match_parent"
20 android:layout_height="wrap_content"
21 android:minHeight="?android:attr/listPreferredItemHeight"
22 android:gravity="center_vertical"
23 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
24 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
25 android:background="?android:attr/selectableItemBackground"
26 android:clipToPadding="false" >
27
28 <LinearLayout
29 android:id="@+id/icon_frame"
30 style="@style/preference_icon_frame"
31 android:layout_width="wrap_content"
32 android:layout_height="wrap_content"
33 android:gravity="start|center_vertical"
34 android:orientation="horizontal"
35 android:clipToPadding="false"
36 android:paddingEnd="12dp"
37 android:paddingTop="4dp"
38 android:paddingBottom="4dp">
39 <com.android.internal.widget.PreferenceImageView
40 android:id="@android:id/icon"
41 android:layout_width="wrap_content"
42 android:layout_height="wrap_content"
43 android:maxWidth="48dp"
44 android:maxHeight="48dp" />
45 </LinearLayout>
46
47 <RelativeLayout
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:layout_weight="1"
51 android:paddingTop="16dp"
52 android:paddingBottom="16dp">
53
54 <TextView android:id="@android:id/title"
55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
57 android:singleLine="true"
58 android:textAppearance="?android:attr/textAppearanceListItem"
59 android:ellipsize="marquee"
60 android:fadingEdge="horizontal" />
61
62 <TextView android:id="@android:id/summary"
63 android:layout_width="wrap_content"
64 android:layout_height="wrap_content"
65 android:layout_below="@android:id/title"
66 android:layout_alignStart="@android:id/title"
67 android:textAppearance="?android:attr/textAppearanceListItemSecondary"
68 android:textColor="?android:attr/textColorSecondary"
69 android:maxLines="1" />
70 </RelativeLayout>
71
72 <LinearLayout
73 android:layout_width="wrap_content"
74 android:layout_height="wrap_content"
75 android:layout_marginEnd="8dp">
76
77 <TextView android:id="@+id/font_sample"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
80 android:singleLine="true"
81 android:textAppearance="?android:attr/textAppearanceMedium"
82 android:layout_gravity="center"
83 android:text="@string/font_sample_text" />
84 </LinearLayout>
85</LinearLayout>