1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2022 The Android Open Source Project
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16  -->
17
18<LinearLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:settings="http://schemas.android.com/apk/res-auto"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:background="?android:attr/selectableItemBackground"
24    android:gravity="center_vertical"
25    android:minHeight="?android:attr/listPreferredItemHeightSmall"
26    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
27
28    <LinearLayout
29        android:id="@android:id/widget_frame"
30        android:layout_width="wrap_content"
31        android:layout_height="match_parent"
32        android:paddingHorizontal="20dp"
33        android:gravity="center"
34        android:minWidth="56dp"
35        android:orientation="vertical"/>
36
37    <LinearLayout
38        android:id="@+id/icon_frame"
39        android:layout_width="wrap_content"
40        android:layout_height="wrap_content"
41        android:gravity="center_vertical"
42        android:minWidth="32dp"
43        android:orientation="horizontal"
44        android:layout_marginEnd="16dp"
45        android:paddingTop="4dp"
46        android:paddingBottom="4dp">
47        <androidx.preference.internal.PreferenceImageView
48            android:id="@android:id/icon"
49            android:layout_width="wrap_content"
50            android:layout_height="wrap_content"
51            settings:maxWidth="@dimen/secondary_app_icon_size"
52            settings:maxHeight="@dimen/secondary_app_icon_size"/>
53    </LinearLayout>
54
55    <LinearLayout
56        android:layout_width="0dp"
57        android:layout_height="wrap_content"
58        android:layout_weight="1"
59        android:orientation="vertical"
60        android:paddingTop="16dp"
61        android:paddingBottom="16dp"
62        android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
63
64        <TextView
65            android:id="@android:id/title"
66            android:layout_width="wrap_content"
67            android:layout_height="wrap_content"
68            android:maxLines="2"
69            android:ellipsize="end"
70            android:hyphenationFrequency="normalFast"
71            android:lineBreakWordStyle="phrase"
72            android:textAppearance="?android:attr/textAppearanceListItem"/>
73
74        <LinearLayout
75            android:id="@+id/summary_container"
76            android:layout_width="match_parent"
77            android:layout_height="wrap_content"
78            android:visibility="gone">
79            <TextView
80                android:id="@android:id/summary"
81                android:layout_width="0dp"
82                android:layout_height="wrap_content"
83                android:layout_weight="1"
84                android:textAppearance="?android:attr/textAppearanceSmall"
85                android:textAlignment="viewStart"
86                android:hyphenationFrequency="normalFast"
87                android:lineBreakWordStyle="phrase"
88                android:textColor="?android:attr/textColorSecondary"/>
89
90            <TextView
91                android:id="@+id/appendix"
92                android:layout_width="0dp"
93                android:layout_height="wrap_content"
94                android:layout_weight="1"
95                android:textAppearance="?android:attr/textAppearanceSmall"
96                android:textAlignment="viewEnd"
97                android:textColor="?android:attr/textColorSecondary"
98                android:maxLines="1"
99                android:visibility="gone"
100                android:ellipsize="end"/>
101        </LinearLayout>
102    </LinearLayout>
103
104    <LinearLayout
105        android:id="@+id/selector_extra_widget_container"
106        android:layout_width="wrap_content"
107        android:layout_height="match_parent"
108        android:orientation="horizontal"
109        android:gravity="center_vertical">
110        <View
111            android:layout_width=".75dp"
112            android:layout_height="32dp"
113            android:layout_marginTop="16dp"
114            android:layout_marginBottom="16dp"
115            android:background="?android:attr/dividerVertical" />
116        <ImageView
117            android:id="@+id/selector_extra_widget"
118            android:layout_width="match_parent"
119            android:minWidth="@dimen/two_target_min_width"
120            android:layout_height="fill_parent"
121            android:src="@drawable/ic_settings_accent"
122            android:contentDescription="@string/settings_label"
123            android:paddingStart="24dp"
124            android:paddingEnd="24dp"
125            android:layout_gravity="center"
126            android:background="?android:attr/selectableItemBackground" />
127    </LinearLayout>
128</LinearLayout>
129