1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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<LinearLayout
18    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/listPreferredItemHeightSmall"
22    android:gravity="center_vertical"
23    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
24    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
25    android:clickable="false"
26    android:orientation="horizontal">
27
28    <LinearLayout
29        android:id="@+id/icon_frame"
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>
43
44    <LinearLayout
45        android:layout_width="match_parent"
46        android:layout_height="wrap_content"
47        android:orientation="vertical"
48        android:layout_marginTop="8dp"
49        android:layout_marginBottom="8dp">
50
51        <LinearLayout
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"
57                android:layout_height="wrap_content"
58                android:layout_weight="1"
59                android:paddingStart="12dp"
60                android:singleLine="true"
61                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead"
62                android:textColor="?android:attr/textColorPrimary"
63                android:ellipsize="marquee"
64                android:fadingEdge="horizontal"/>
65            <!-- Preference should place its actual preference widget here. -->
66            <LinearLayout
67                android:id="@android:id/widget_frame"
68                android:layout_width="wrap_content"
69                android:layout_height="match_parent"
70                android:gravity="end|center_vertical"
71                android:paddingStart="12dp"
72                android:orientation="vertical"/>
73        </LinearLayout>
74
75        <LinearLayout
76            android:layout_width="match_parent"
77            android:layout_height="wrap_content"
78            android:orientation="vertical">
79
80            <SeekBar
81                android:id="@*android:id/seekbar"
82                android:layout_gravity="center_vertical"
83                android:paddingStart="12dp"
84                android:layout_width="match_parent"
85                android:layout_height="48dp"/>
86
87            <TextView
88                android:id="@+id/suppression_text"
89                android:layout_width="match_parent"
90                android:layout_height="wrap_content"
91                android:paddingStart="12dp"
92                android:layout_gravity="center_vertical|start"
93                android:textAlignment="viewStart"
94                android:singleLine="true"
95                android:ellipsize="end"
96                android:visibility="gone"
97                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
98                android:textColor="?android:attr/textColorSecondary"/>
99
100        </LinearLayout>
101    </LinearLayout>
102
103</LinearLayout>
104