1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2022 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    android:layout_width="match_parent"
19    android:layout_height="wrap_content"
20    android:minHeight="?android:attr/listPreferredItemHeightSmall"
21    android:gravity="center_vertical"
22    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
23    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
24    android:background="?android:attr/selectableItemBackground"
25    android:clipToPadding="false">
26
27    <LinearLayout
28        android:id="@+id/icon_frame"
29        android:layout_width="wrap_content"
30        android:layout_height="wrap_content"
31        android:minWidth="56dp"
32        android:gravity="start|center_vertical"
33        android:orientation="horizontal"
34        android:paddingEnd="12dp"
35        android:paddingTop="4dp"
36        android:paddingBottom="4dp">
37        <com.android.internal.widget.PreferenceImageView
38            android:id="@android:id/icon"
39            android:layout_width="wrap_content"
40            android:layout_height="wrap_content"
41            android:maxWidth="48dp"
42            android:maxHeight="48dp" />
43    </LinearLayout>
44
45    <RelativeLayout
46        android:layout_width="wrap_content"
47        android:layout_height="wrap_content"
48        android:layout_weight="1"
49        android:paddingTop="16dp"
50        android:paddingBottom="16dp">
51
52        <TextView
53            android:id="@android:id/title"
54            android:layout_width="wrap_content"
55            android:layout_height="wrap_content"
56            android:maxLines="10"
57            android:hyphenationFrequency="normalFast"
58            android:lineBreakWordStyle="phrase"
59            android:textAppearance="?android:attr/textAppearanceListItem"
60            android:ellipsize="marquee" />
61
62        <TextView
63            android:id="@android:id/summary"
64            android:layout_width="wrap_content"
65            android:layout_height="wrap_content"
66            android:layout_below="@android:id/title"
67            android:layout_alignStart="@android:id/title"
68            android:textAppearance="?android:attr/textAppearanceListItemSecondary"
69            android:textColor="?android:attr/textColorSecondary"
70            android:hyphenationFrequency="normalFast"
71            android:lineBreakWordStyle="phrase"
72            android:maxLines="10" />
73
74        <TextView
75            android:id="@+id/additional_summary"
76            android:layout_width="wrap_content"
77            android:layout_height="wrap_content"
78            android:layout_below="@android:id/summary"
79            android:layout_alignStart="@android:id/summary"
80            android:textAppearance="?android:attr/textAppearanceListItemSecondary"
81            android:textColor="?android:attr/textColorSecondary"
82            android:maxLines="10"
83            android:hyphenationFrequency="normalFast"
84            android:lineBreakWordStyle="phrase"
85            android:visibility="gone" />
86    </RelativeLayout>
87
88    <!-- Preference should place its actual preference widget here. -->
89    <LinearLayout
90        android:id="@android:id/widget_frame"
91        android:layout_width="wrap_content"
92        android:layout_height="match_parent"
93        android:gravity="end|center_vertical"
94        android:paddingStart="16dp"
95        android:orientation="vertical" />
96
97</LinearLayout>
98