1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2015 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 xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
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:background="?android:attr/activatedBackgroundIndicator"
27    android:clipToPadding="false">
28
29    <LinearLayout
30        android:id="@+id/icon_frame"
31        android:layout_width="wrap_content"
32        android:layout_height="wrap_content"
33        android:layout_marginStart="-4dp"
34        android:minWidth="60dp"
35        android:gravity="start|center_vertical"
36        android:orientation="horizontal"
37        android:paddingEnd="12dp"
38        android:paddingTop="4dp"
39        android:paddingBottom="4dp">
40        <android.support.v7.internal.widget.PreferenceImageView
41            android:id="@+id/icon"
42            android:layout_width="wrap_content"
43            android:layout_height="wrap_content"
44            app:maxWidth="48dp"
45            app:maxHeight="48dp" />
46    </LinearLayout>
47
48  <RelativeLayout
49      android:layout_width="wrap_content"
50      android:layout_height="wrap_content"
51      android:layout_weight="1"
52      android:paddingTop="16dp"
53      android:paddingBottom="16dp">
54
55      <TextView android:id="@+id/title"
56          android:layout_width="wrap_content"
57          android:layout_height="wrap_content"
58          android:singleLine="true"
59          android:textAppearance="?android:attr/textAppearanceListItem"
60          android:ellipsize="marquee" />
61
62      <TextView android:id="@+id/summary"
63          android:layout_width="wrap_content"
64          android:layout_height="wrap_content"
65          android:layout_below="@id/title"
66          android:layout_alignStart="@id/title"
67          android:textAppearance="?android:attr/textAppearanceListItemSecondary"
68          android:textColor="?android:attr/textColorSecondary"
69          android:maxLines="10" />
70
71  </RelativeLayout>
72
73  <!-- Preference should place its actual preference widget here. -->
74  <LinearLayout android:id="@+id/widget_frame"
75      android:layout_width="wrap_content"
76      android:layout_height="match_parent"
77      android:gravity="end|center_vertical"
78      android:paddingStart="16dp"
79      android:orientation="vertical" />
80
81</LinearLayout>
82