1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2018 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<LinearLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:settings="http://schemas.android.com/apk/res-auto" 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:background="@android:color/transparent" 24 android:clipToPadding="false"> 25 26 <LinearLayout 27 android:layout_width="0dp" 28 android:layout_height="match_parent" 29 android:layout_weight="1" 30 android:background="?android:attr/selectableItemBackground" 31 android:gravity="start|center_vertical" 32 android:clipToPadding="false"> 33 34 <LinearLayout 35 android:id="@+id/checkbox_frame" 36 android:layout_width="wrap_content" 37 android:layout_height="match_parent" 38 android:gravity="center" 39 android:minWidth="56dp" 40 android:layout_marginEnd="16dp" 41 android:orientation="vertical"> 42 <RadioButton 43 android:id="@android:id/checkbox" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:layout_gravity="center" 47 android:background="@null" 48 android:focusable="false" 49 android:clickable="false" /> 50 </LinearLayout> 51 52 <RelativeLayout 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:layout_weight="1" 56 android:paddingTop="16dp" 57 android:paddingBottom="16dp"> 58 59 <TextView 60 android:id="@android:id/title" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:singleLine="true" 64 android:textAppearance="?android:attr/textAppearanceListItem" 65 android:ellipsize="marquee" /> 66 67 <TextView 68 android:id="@android:id/summary" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:layout_below="@android:id/title" 72 android:layout_alignStart="@android:id/title" 73 android:textAppearance="?android:attr/textAppearanceListItemSecondary" 74 android:textColor="?android:attr/textColorSecondary" 75 android:maxLines="10" /> 76 77 </RelativeLayout> 78 </LinearLayout> 79 80 <include layout="@layout/preference_two_target_divider" /> 81 82 <LinearLayout 83 android:id="@android:id/widget_frame" 84 android:layout_width="wrap_content" 85 android:layout_height="match_parent" 86 android:gravity="center" 87 android:minWidth="64dp" 88 android:orientation="vertical" /> 89 90</LinearLayout> 91