1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <!--
3+ Copyright (C) 2017 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+ <!-- Based off preference_two_target.xml from packages/SettingsLib -->
18+ <!-- Based off preference_material_settings.xml except that ripple on only on the left side. -->
19+ <LinearLayout
20+ xmlns : android =" http://schemas.android.com/apk/res/android"
21+ android : layout_width =" match_parent"
22+ android : layout_height =" wrap_content"
23+ android : minHeight =" ?android:attr/listPreferredItemHeightSmall"
24+ android : gravity =" center_vertical"
25+ android : background =" @android:color/transparent"
26+ android : clipToPadding =" false" >
27+ <LinearLayout
28+ android : layout_width =" 0dp"
29+ android : layout_height =" match_parent"
30+ android : layout_weight =" 1"
31+ android : background =" ?android:attr/selectableItemBackground"
32+ android : gravity =" start|center_vertical"
33+ android : clipToPadding =" false"
34+ android : paddingStart =" ?android:attr/listPreferredItemPaddingStart"
35+ android : paddingEnd =" ?android:attr/listPreferredItemPaddingEnd" >
36+ <LinearLayout
37+ android : id =" @+id/icon_frame"
38+ android : layout_width =" wrap_content"
39+ android : layout_height =" wrap_content"
40+ android : gravity =" start|center_vertical"
41+ android : minWidth =" 56dp"
42+ android : orientation =" horizontal"
43+ android : clipToPadding =" false"
44+ android : paddingTop =" 4dp"
45+ android : paddingBottom =" 4dp" >
46+ <!--
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="48dp"
52+ settings:maxHeight="48dp" />
53+ -->
54+ </LinearLayout >
55+ <RelativeLayout
56+ android : layout_width =" wrap_content"
57+ android : layout_height =" wrap_content"
58+ android : layout_weight =" 1"
59+ android : paddingTop =" 16dp"
60+ android : paddingBottom =" 16dp" >
61+ <TextView
62+ android : id =" @android:id/title"
63+ android : layout_width =" wrap_content"
64+ android : layout_height =" wrap_content"
65+ android : singleLine =" true"
66+ android : textAppearance =" ?android:attr/textAppearanceListItem"
67+ android : ellipsize =" marquee" />
68+ <TextView
69+ android : id =" @android:id/summary"
70+ android : layout_width =" wrap_content"
71+ android : layout_height =" wrap_content"
72+ android : layout_below =" @android:id/title"
73+ android : layout_alignStart =" @android:id/title"
74+ android : textAppearance =" ?attr/textAppearanceListItemSecondary"
75+ android : textColor =" ?android:attr/textColorSecondary"
76+ android : maxLines =" 10" />
77+ </RelativeLayout >
78+ </LinearLayout >
79+
80+ <LinearLayout
81+ android : id =" @+id/two_target_divider"
82+ android : layout_width =" wrap_content"
83+ android : layout_height =" match_parent"
84+ android : gravity =" start|center_vertical"
85+ android : orientation =" horizontal"
86+ android : paddingTop =" 16dp"
87+ android : paddingBottom =" 16dp" >
88+ <View
89+ android : layout_width =" 1dp"
90+ android : layout_height =" match_parent"
91+ android : background =" ?android:attr/listDivider" />
92+ </LinearLayout >
93+
94+ <!-- Preference should place its actual preference widget here. -->
95+ <LinearLayout
96+ android : id =" @android:id/widget_frame"
97+ android : layout_width =" wrap_content"
98+ android : layout_height =" match_parent"
99+ android : minWidth =" 64dp"
100+ android : gravity =" center"
101+ android : orientation =" vertical" />
102+ </LinearLayout >
0 commit comments