1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2023 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:background="?android:attr/selectableItemBackground"
23    android:gravity="center_vertical"
24    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
25    android:paddingTop="16dp"
26    android:paddingBottom="16dp">
27
28    <LinearLayout
29        android:id="@android:id/widget_frame"
30        android:layout_width="wrap_content"
31        android:layout_height="match_parent"
32        android:paddingHorizontal="20dp"
33        android:gravity="center_horizontal"
34        android:minWidth="56dp"
35        android:orientation="vertical"/>
36
37    <LinearLayout
38        android:layout_width="0dp"
39        android:layout_height="wrap_content"
40        android:layout_weight="1"
41        android:orientation="vertical"
42        android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
43
44        <TextView
45            android:id="@android:id/title"
46            android:layout_width="wrap_content"
47            android:layout_height="wrap_content"
48            android:maxLines="2"
49            android:textAppearance="?android:attr/textAppearanceListItem"/>
50
51        <LinearLayout
52            android:id="@+id/summary_container"
53            android:layout_width="match_parent"
54            android:layout_height="wrap_content"
55            android:visibility="gone">
56            <TextView
57                android:id="@android:id/summary"
58                android:layout_width="0dp"
59                android:layout_height="wrap_content"
60                android:layout_weight="1"
61                android:textAppearance="?android:attr/textAppearanceSmall"
62                android:textAlignment="viewStart"
63                android:textColor="?android:attr/textColorSecondary"/>
64        </LinearLayout>
65
66        <ImageView
67            android:id="@android:id/icon"
68            android:layout_width="wrap_content"
69            android:layout_height="wrap_content"
70            android:paddingTop="@dimen/settingslib_illustration_padding"
71            android:adjustViewBounds="true"
72            android:maxWidth="@dimen/settingslib_illustration_width"
73            android:maxHeight="@dimen/settingslib_illustration_height" />
74    </LinearLayout>
75</LinearLayout>