John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 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 | |
Fan Zhang | 1c118b5 | 2016-12-09 13:04:24 -0800 | [diff] [blame] | 17 | <LinearLayout |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
Fan Zhang | 1c118b5 | 2016-12-09 13:04:24 -0800 | [diff] [blame] | 21 | android:minHeight="?android:attr/listPreferredItemHeightSmall" |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 22 | android:gravity="center_vertical" |
| 23 | android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
Julia Reynolds | 9dbb20f | 2015-11-23 08:58:49 -0500 | [diff] [blame] | 24 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
Fan Zhang | 1c118b5 | 2016-12-09 13:04:24 -0800 | [diff] [blame] | 25 | android:clickable="false" |
| 26 | android:orientation="horizontal"> |
| 27 | |
| 28 | <LinearLayout |
Fan Zhang | c2b0c7b | 2017-05-31 15:40:02 -0700 | [diff] [blame] | 29 | android:id="@+id/icon_frame" |
Fan Zhang | 1c118b5 | 2016-12-09 13:04:24 -0800 | [diff] [blame] | 30 | android:layout_width="wrap_content" |
| 31 | android:layout_height="wrap_content" |
| 32 | android:minWidth="44dp" |
| 33 | android:gravity="start|center_vertical" |
| 34 | android:orientation="horizontal" |
| 35 | android:paddingEnd="12dp" |
| 36 | android:paddingTop="4dp" |
| 37 | android:paddingBottom="4dp"> |
| 38 | <com.android.internal.widget.PreferenceImageView |
| 39 | android:id="@android:id/icon" |
| 40 | android:layout_width="24dp" |
| 41 | android:layout_height="24dp"/> |
| 42 | </LinearLayout> |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 43 | |
| 44 | <LinearLayout |
| 45 | android:layout_width="match_parent" |
| 46 | android:layout_height="wrap_content" |
| 47 | android:orientation="vertical" |
Julia Reynolds | ca34a28 | 2018-09-19 12:55:45 -0400 | [diff] [blame] | 48 | android:layout_marginTop="8dp" |
| 49 | android:layout_marginBottom="8dp"> |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 50 | |
Sudheer Shanka | a596351 | 2016-02-23 17:25:53 +0000 | [diff] [blame] | 51 | <LinearLayout |
Fan Zhang | 1c118b5 | 2016-12-09 13:04:24 -0800 | [diff] [blame] | 52 | android:layout_width="match_parent" |
| 53 | android:layout_height="wrap_content"> |
| 54 | <TextView |
| 55 | android:id="@android:id/title" |
| 56 | android:layout_width="0dp" |
Sudheer Shanka | a596351 | 2016-02-23 17:25:53 +0000 | [diff] [blame] | 57 | android:layout_height="wrap_content" |
| 58 | android:layout_weight="1" |
caxtonchan | 4964685 | 2018-04-09 16:15:45 +0800 | [diff] [blame] | 59 | android:paddingStart="12dp" |
Sudheer Shanka | a596351 | 2016-02-23 17:25:53 +0000 | [diff] [blame] | 60 | android:singleLine="true" |
Amin Shaikh | a5e8bdd | 2018-12-19 14:42:59 -0500 | [diff] [blame] | 61 | android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead" |
Sudheer Shanka | a596351 | 2016-02-23 17:25:53 +0000 | [diff] [blame] | 62 | android:textColor="?android:attr/textColorPrimary" |
| 63 | android:ellipsize="marquee" |
Fan Zhang | 1c118b5 | 2016-12-09 13:04:24 -0800 | [diff] [blame] | 64 | android:fadingEdge="horizontal"/> |
Sudheer Shanka | a596351 | 2016-02-23 17:25:53 +0000 | [diff] [blame] | 65 | <!-- Preference should place its actual preference widget here. --> |
Fan Zhang | 1c118b5 | 2016-12-09 13:04:24 -0800 | [diff] [blame] | 66 | <LinearLayout |
| 67 | android:id="@android:id/widget_frame" |
Sudheer Shanka | a596351 | 2016-02-23 17:25:53 +0000 | [diff] [blame] | 68 | android:layout_width="wrap_content" |
| 69 | android:layout_height="match_parent" |
| 70 | android:gravity="end|center_vertical" |
caxtonchan | 4964685 | 2018-04-09 16:15:45 +0800 | [diff] [blame] | 71 | android:paddingStart="12dp" |
Fan Zhang | 1c118b5 | 2016-12-09 13:04:24 -0800 | [diff] [blame] | 72 | android:orientation="vertical"/> |
Sudheer Shanka | a596351 | 2016-02-23 17:25:53 +0000 | [diff] [blame] | 73 | </LinearLayout> |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 74 | |
Julia Reynolds | 0ddba4c | 2018-04-17 09:11:43 -0400 | [diff] [blame] | 75 | <LinearLayout |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 76 | android:layout_width="match_parent" |
| 77 | android:layout_height="wrap_content" |
Julia Reynolds | ca34a28 | 2018-09-19 12:55:45 -0400 | [diff] [blame] | 78 | android:orientation="vertical"> |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 79 | |
Fan Zhang | 1c118b5 | 2016-12-09 13:04:24 -0800 | [diff] [blame] | 80 | <SeekBar |
| 81 | android:id="@*android:id/seekbar" |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 82 | android:layout_gravity="center_vertical" |
caxtonchan | 4964685 | 2018-04-09 16:15:45 +0800 | [diff] [blame] | 83 | android:paddingStart="12dp" |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 84 | android:layout_width="match_parent" |
Julia Reynolds | ca34a28 | 2018-09-19 12:55:45 -0400 | [diff] [blame] | 85 | android:layout_height="48dp"/> |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 86 | |
Fan Zhang | 1c118b5 | 2016-12-09 13:04:24 -0800 | [diff] [blame] | 87 | <TextView |
| 88 | android:id="@+id/suppression_text" |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 89 | android:layout_width="match_parent" |
| 90 | android:layout_height="wrap_content" |
caxtonchan | 4964685 | 2018-04-09 16:15:45 +0800 | [diff] [blame] | 91 | android:paddingStart="12dp" |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 92 | android:layout_gravity="center_vertical|start" |
| 93 | android:textAlignment="viewStart" |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 94 | android:singleLine="true" |
| 95 | android:ellipsize="end" |
Julia Reynolds | 0ddba4c | 2018-04-17 09:11:43 -0400 | [diff] [blame] | 96 | android:visibility="gone" |
Amin Shaikh | a5e8bdd | 2018-12-19 14:42:59 -0500 | [diff] [blame] | 97 | android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" |
Fan Zhang | 1c118b5 | 2016-12-09 13:04:24 -0800 | [diff] [blame] | 98 | android:textColor="?android:attr/textColorSecondary"/> |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 99 | |
Julia Reynolds | 0ddba4c | 2018-04-17 09:11:43 -0400 | [diff] [blame] | 100 | </LinearLayout> |
John Spurlock | fdebfc3 | 2014-11-14 14:32:01 -0500 | [diff] [blame] | 101 | </LinearLayout> |
| 102 | |
Fan Zhang | 1c118b5 | 2016-12-09 13:04:24 -0800 | [diff] [blame] | 103 | </LinearLayout> |