1<!--
2  ~ Copyright (C) 2020 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
17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18              xmlns:app="http://schemas.android.com/apk/res-auto"
19              android:layout_width="match_parent"
20              android:layout_height="wrap_content"
21              android:minHeight="?android:attr/listPreferredItemHeight"
22              android:gravity="center_vertical"
23              android:paddingEnd="?android:attr/scrollbarSize"
24              android:paddingRight="?android:attr/scrollbarSize"
25              android:background="?android:attr/selectableItemBackground">
26
27    <FrameLayout
28        android:id="@+id/icon_frame"
29        android:layout_width="wrap_content"
30        android:layout_height="wrap_content"
31        android:layout_marginTop="6dip"
32        android:layout_marginStart="24dip"
33        android:layout_gravity="top|center">
34        <androidx.preference.internal.PreferenceImageView
35            android:id="@android:id/icon"
36            android:layout_width="wrap_content"
37            android:layout_height="wrap_content"
38            app:maxWidth="24dp"
39            app:maxHeight="24dp" />
40    </FrameLayout>
41
42    <RelativeLayout
43        android:layout_width="0dp"
44        android:layout_height="wrap_content"
45        android:layout_marginStart="24dip"
46        android:layout_marginLeft="24dip"
47        android:layout_marginEnd="6dip"
48        android:layout_marginRight="6dip"
49        android:layout_marginTop="6dip"
50        android:layout_marginBottom="6dip"
51        android:layout_weight="1">
52
53        <TextView android:id="@android:id/title"
54                  android:layout_width="wrap_content"
55                  android:layout_height="wrap_content"
56                  android:singleLine="true"
57                  android:textAppearance="?android:attr/textAppearanceLarge"
58                  android:textColor="?android:attr/textColorPrimary"
59                  android:ellipsize="marquee"
60                  android:visibility="gone"
61                  android:fadingEdge="horizontal" />
62
63        <TextView 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:layout_alignLeft="@android:id/title"
69                  android:textAppearance="?android:attr/textAppearanceSmall"
70                  android:textColor="?android:attr/textColorSecondary"
71                  android:maxLines="4" />
72
73        <TextView android:id="@+id/summary2"
74                  android:layout_width="wrap_content"
75                  android:layout_height="wrap_content"
76                  android:layout_below="@android:id/summary"
77                  android:layout_alignStart="@android:id/title"
78                  android:layout_alignLeft="@android:id/title"
79                  android:layout_marginTop="20dp"
80                  android:textAppearance="?android:attr/textAppearanceSmall"
81                  android:textColor="?android:attr/textColorSecondary"
82                  android:maxLines="4" />
83
84    </RelativeLayout>
85
86    <!-- Preference should place its actual preference widget here. -->
87    <LinearLayout android:id="@android:id/widget_frame"
88                  android:layout_width="wrap_content"
89                  android:layout_height="match_parent"
90                  android:gravity="center_vertical"
91                  android:orientation="vertical" />
92
93</LinearLayout>
94