1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2019 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:textAppearance="?android:attr/textAppearanceListItem"/>
70
71        <LinearLayout
72            android:id="@+id/summary_container"
73            android:layout_width="match_parent"
74            android:layout_height="wrap_content"
75            android:visibility="gone">
76            <TextView
77                android:id="@android:id/summary"
78                android:layout_width="0dp"
79                android:layout_height="wrap_content"
80                android:layout_weight="1"
81                android:textAppearance="?android:attr/textAppearanceSmall"
82                android:textAlignment="viewStart"
83                android:textColor="?android:attr/textColorSecondary"/>
84
85            <TextView
86                android:id="@+id/appendix"
87                android:layout_width="0dp"
88                android:layout_height="wrap_content"
89                android:layout_weight="1"
90                android:textAppearance="?android:attr/textAppearanceSmall"
91                android:textAlignment="viewEnd"
92                android:textColor="?android:attr/textColorSecondary"
93                android:maxLines="1"
94                android:visibility="gone"
95                android:ellipsize="end"/>
96        </LinearLayout>
97    </LinearLayout>
98
99    <LinearLayout
100        android:id="@+id/radio_extra_widget_container"
101        android:layout_width="wrap_content"
102        android:layout_height="match_parent"
103        android:orientation="horizontal"
104        android:gravity="center_vertical">
105        <View
106            android:layout_width=".75dp"
107            android:layout_height="32dp"
108            android:layout_marginTop="16dp"
109            android:layout_marginBottom="16dp"
110            android:background="?android:attr/dividerVertical" />
111        <ImageView
112            android:id="@+id/radio_extra_widget"
113            android:layout_width="match_parent"
114            android:minWidth="@dimen/two_target_min_width"
115            android:layout_height="fill_parent"
116            android:src="@drawable/ic_settings_accent"
117            android:contentDescription="@string/settings_label"
118            android:paddingStart="24dp"
119            android:paddingEnd="24dp"
120            android:layout_gravity="center"
121            android:background="?android:attr/selectableItemBackground" />
122    </LinearLayout>
123</LinearLayout>
124