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
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    xmlns:settings="http://schemas.android.com/apk/res-auto"
22    android:layout_width="match_parent"
23    android:layout_height="wrap_content"
24    android:minHeight="?android:attr/listPreferredItemHeightSmall"
25    android:gravity="center_vertical"
26    android:background="@android:color/transparent"
27    android:clipToPadding="false">
28
29    <LinearLayout
30        android:layout_width="0dp"
31        android:layout_height="match_parent"
32        android:layout_weight="1"
33        android:background="?android:attr/selectableItemBackground"
34        android:gravity="start|center_vertical"
35        android:clipToPadding="false"
36        android:paddingStart="?android:attr/listPreferredItemPaddingStart"
37        android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
38
39        <LinearLayout
40            android:id="@+id/icon_frame"
41            android:layout_width="wrap_content"
42            android:layout_height="wrap_content"
43            android:gravity="start|center_vertical"
44            android:minWidth="56dp"
45            android:orientation="horizontal"
46            android:clipToPadding="false"
47            android:paddingTop="4dp"
48            android:paddingBottom="4dp">
49            <androidx.preference.internal.PreferenceImageView
50                android:id="@android:id/icon"
51                android:layout_width="wrap_content"
52                android:layout_height="wrap_content"
53                settings:maxWidth="48dp"
54                settings:maxHeight="48dp" />
55        </LinearLayout>
56
57        <RelativeLayout
58            android:layout_width="wrap_content"
59            android:layout_height="wrap_content"
60            android:layout_weight="1"
61            android:paddingTop="16dp"
62            android:paddingBottom="16dp">
63
64            <TextView
65                android:id="@android:id/title"
66                android:layout_width="wrap_content"
67                android:layout_height="wrap_content"
68                android:singleLine="true"
69                android:textAppearance="?android:attr/textAppearanceListItem"
70                android:ellipsize="marquee" />
71
72            <TextView
73                android:id="@android:id/summary"
74                android:layout_width="wrap_content"
75                android:layout_height="wrap_content"
76                android:layout_below="@android:id/title"
77                android:layout_alignStart="@android:id/title"
78                android:textAppearance="?android:attr/textAppearanceListItemSecondary"
79                android:textColor="?android:attr/textColorSecondary"
80                android:maxLines="10" />
81
82        </RelativeLayout>
83
84    </LinearLayout>
85
86    <include layout="@layout/preference_two_target_divider" />
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:minWidth="64dp"
94        android:gravity="center"
95        android:orientation="vertical" />
96
97</LinearLayout>
98