1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2019 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    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:minHeight="?android:attr/listPreferredItemHeightSmall"
23    android:gravity="center_vertical"
24    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
25    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
26    android:clipToPadding="false">
27
28    <LinearLayout
29        android:id="@+id/main_frame"
30        android:layout_width="0dp"
31        android:layout_height="wrap_content"
32        android:layout_weight="1"
33        android:gravity="start|center_vertical"
34        >
35
36        <FrameLayout
37            android:id="@+id/icon_frame"
38            android:layout_width="wrap_content"
39            android:layout_height="wrap_content"
40            android:minWidth="56dp"
41            android:paddingEnd="12dp"
42            android:paddingTop="16dp"
43            android:paddingBottom="4dp">
44
45            <ImageView
46                android:id="@android:id/icon"
47                android:layout_width="wrap_content"
48                android:layout_height="wrap_content" />
49
50        </FrameLayout>
51
52        <RelativeLayout
53            android:layout_width="wrap_content"
54            android:layout_height="wrap_content"
55            android:paddingTop="16dp"
56            android:paddingBottom="16dp">
57
58            <TextView
59                android:id="@android:id/title"
60                android:layout_width="wrap_content"
61                android:layout_height="wrap_content"
62                android:singleLine="true"
63                android:textAppearance="?android:attr/textAppearanceListItem"
64                android:ellipsize="marquee" />
65
66            <TextView
67                android:id="@android:id/summary"
68                android:layout_width="wrap_content"
69                android:layout_height="wrap_content"
70                android:layout_below="@android:id/title"
71                android:layout_alignStart="@android:id/title"
72                android:textAppearance="?android:attr/textAppearanceListItemSecondary"
73                android:textColor="?android:attr/textColorSecondary"
74                android:maxLines="10" />
75
76        </RelativeLayout>
77
78    </LinearLayout>
79
80    <View
81        android:id="@+id/divider"
82        android:layout_width="1dp"
83        android:layout_height="match_parent"
84        android:layout_marginTop="16dp"
85        android:layout_marginBottom="16dp"
86        android:background="?android:attr/listDivider" />
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:minWidth="58dp"
95        android:orientation="vertical" />
96
97</LinearLayout>
98