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