blob: 34c732d08bf969cfcd417bd32d9cdf267466b7ea [file] [log] [blame]
John Spurlockfdebfc32014-11-14 14:32:01 -05001<?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 Zhang1c118b52016-12-09 13:04:24 -080017<LinearLayout
18 xmlns:android="http://schemas.android.com/apk/res/android"
John Spurlockfdebfc32014-11-14 14:32:01 -050019 android:layout_width="match_parent"
20 android:layout_height="wrap_content"
Fan Zhang1c118b52016-12-09 13:04:24 -080021 android:minHeight="?android:attr/listPreferredItemHeightSmall"
John Spurlockfdebfc32014-11-14 14:32:01 -050022 android:gravity="center_vertical"
23 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
Julia Reynolds9dbb20f2015-11-23 08:58:49 -050024 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
Fan Zhang1c118b52016-12-09 13:04:24 -080025 android:clickable="false"
26 android:orientation="horizontal">
27
28 <LinearLayout
Fan Zhangc2b0c7b2017-05-31 15:40:02 -070029 android:id="@+id/icon_frame"
Fan Zhang1c118b52016-12-09 13:04:24 -080030 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 Spurlockfdebfc32014-11-14 14:32:01 -050043
44 <LinearLayout
45 android:layout_width="match_parent"
46 android:layout_height="wrap_content"
47 android:orientation="vertical"
Julia Reynoldsca34a282018-09-19 12:55:45 -040048 android:layout_marginTop="8dp"
49 android:layout_marginBottom="8dp">
John Spurlockfdebfc32014-11-14 14:32:01 -050050
Sudheer Shankaa5963512016-02-23 17:25:53 +000051 <LinearLayout
Fan Zhang1c118b52016-12-09 13:04:24 -080052 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 Shankaa5963512016-02-23 17:25:53 +000057 android:layout_height="wrap_content"
58 android:layout_weight="1"
caxtonchan49646852018-04-09 16:15:45 +080059 android:paddingStart="12dp"
Sudheer Shankaa5963512016-02-23 17:25:53 +000060 android:singleLine="true"
Amin Shaikha5e8bdd2018-12-19 14:42:59 -050061 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead"
Sudheer Shankaa5963512016-02-23 17:25:53 +000062 android:textColor="?android:attr/textColorPrimary"
63 android:ellipsize="marquee"
Fan Zhang1c118b52016-12-09 13:04:24 -080064 android:fadingEdge="horizontal"/>
Sudheer Shankaa5963512016-02-23 17:25:53 +000065 <!-- Preference should place its actual preference widget here. -->
Fan Zhang1c118b52016-12-09 13:04:24 -080066 <LinearLayout
67 android:id="@android:id/widget_frame"
Sudheer Shankaa5963512016-02-23 17:25:53 +000068 android:layout_width="wrap_content"
69 android:layout_height="match_parent"
70 android:gravity="end|center_vertical"
caxtonchan49646852018-04-09 16:15:45 +080071 android:paddingStart="12dp"
Fan Zhang1c118b52016-12-09 13:04:24 -080072 android:orientation="vertical"/>
Sudheer Shankaa5963512016-02-23 17:25:53 +000073 </LinearLayout>
John Spurlockfdebfc32014-11-14 14:32:01 -050074
Julia Reynolds0ddba4c2018-04-17 09:11:43 -040075 <LinearLayout
John Spurlockfdebfc32014-11-14 14:32:01 -050076 android:layout_width="match_parent"
77 android:layout_height="wrap_content"
Julia Reynoldsca34a282018-09-19 12:55:45 -040078 android:orientation="vertical">
John Spurlockfdebfc32014-11-14 14:32:01 -050079
Fan Zhang1c118b52016-12-09 13:04:24 -080080 <SeekBar
81 android:id="@*android:id/seekbar"
John Spurlockfdebfc32014-11-14 14:32:01 -050082 android:layout_gravity="center_vertical"
caxtonchan49646852018-04-09 16:15:45 +080083 android:paddingStart="12dp"
John Spurlockfdebfc32014-11-14 14:32:01 -050084 android:layout_width="match_parent"
Julia Reynoldsca34a282018-09-19 12:55:45 -040085 android:layout_height="48dp"/>
John Spurlockfdebfc32014-11-14 14:32:01 -050086
Fan Zhang1c118b52016-12-09 13:04:24 -080087 <TextView
88 android:id="@+id/suppression_text"
John Spurlockfdebfc32014-11-14 14:32:01 -050089 android:layout_width="match_parent"
90 android:layout_height="wrap_content"
caxtonchan49646852018-04-09 16:15:45 +080091 android:paddingStart="12dp"
John Spurlockfdebfc32014-11-14 14:32:01 -050092 android:layout_gravity="center_vertical|start"
93 android:textAlignment="viewStart"
John Spurlockfdebfc32014-11-14 14:32:01 -050094 android:singleLine="true"
95 android:ellipsize="end"
Julia Reynolds0ddba4c2018-04-17 09:11:43 -040096 android:visibility="gone"
Amin Shaikha5e8bdd2018-12-19 14:42:59 -050097 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
Fan Zhang1c118b52016-12-09 13:04:24 -080098 android:textColor="?android:attr/textColorSecondary"/>
John Spurlockfdebfc32014-11-14 14:32:01 -050099
Julia Reynolds0ddba4c2018-04-17 09:11:43 -0400100 </LinearLayout>
John Spurlockfdebfc32014-11-14 14:32:01 -0500101 </LinearLayout>
102
Fan Zhang1c118b52016-12-09 13:04:24 -0800103</LinearLayout>