blob: 3bcb489519b80974cdfc7fcdf531ecaae4c848b3 [file] [log] [blame]
Doris Lingf42206d2017-08-31 13:49:56 -07001<?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 frameworks/base/core/res/res/layout/preference_material.xml -->
19<LinearLayout
20 xmlns:android="http://schemas.android.com/apk/res/android"
21 android:layout_width="match_parent"
22 android:layout_height="wrap_content"
Louis Pullen-Freilich4102db32019-02-13 18:18:05 +000023 android:minHeight="?android:attr/listPreferredItemHeightSmall"
Doris Lingf42206d2017-08-31 13:49:56 -070024 android:gravity="center_vertical"
Louis Pullen-Freilich4102db32019-02-13 18:18:05 +000025 android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
Doris Lingf42206d2017-08-31 13:49:56 -070026 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
Louis Pullen-Freilich01dcc6cc2019-03-25 14:48:54 +000027 android:paddingRight="?android:attr/listPreferredItemPaddingRight"
Doris Lingf42206d2017-08-31 13:49:56 -070028 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
29 android:background="?android:attr/selectableItemBackground"
Louis Pullen-Freilich4aa8bc22018-07-27 18:30:40 +010030 android:clipToPadding="false"
Louis Pullen-Freilich4102db32019-02-13 18:18:05 +000031 android:focusable="true"
Louis Pullen-Freilich4aa8bc22018-07-27 18:30:40 +010032 android:baselineAligned="false">
Doris Lingf42206d2017-08-31 13:49:56 -070033
Louis Pullen-Freilich4aa8bc22018-07-27 18:30:40 +010034 <include layout="@layout/image_frame"/>
Doris Lingf42206d2017-08-31 13:49:56 -070035
36 <RelativeLayout
Louis Pullen-Freilicha8084ba2018-03-19 15:40:43 +000037 android:layout_width="0dp"
Doris Lingf42206d2017-08-31 13:49:56 -070038 android:layout_height="wrap_content"
39 android:layout_weight="1"
40 android:paddingTop="16dp"
41 android:paddingBottom="16dp">
42
43 <TextView
44 android:id="@android:id/title"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
Louis Pullen-Freilich4102db32019-02-13 18:18:05 +000047 android:singleLine="true"
shaoweishen90de7682018-03-27 11:39:20 +080048 android:textAppearance="?android:attr/textAppearanceSmall"
49 android:textColor="?android:attr/textColorPrimary"
Doris Lingf42206d2017-08-31 13:49:56 -070050 android:ellipsize="marquee"/>
51
52 <TextView
53 android:id="@android:id/summary"
54 android:layout_width="wrap_content"
55 android:layout_height="wrap_content"
56 android:layout_below="@android:id/title"
Louis Pullen-Freilich4102db32019-02-13 18:18:05 +000057 android:layout_alignLeft="@android:id/title"
Doris Lingf42206d2017-08-31 13:49:56 -070058 android:layout_alignStart="@android:id/title"
Doris Lingf42206d2017-08-31 13:49:56 -070059 android:textColor="?android:attr/textColorSecondary"
60 android:ellipsize="marquee"
Louis Pullen-Freilich4102db32019-02-13 18:18:05 +000061 android:singleLine="true"
62 style="@style/PreferenceSummaryTextStyle"/>
Doris Lingf42206d2017-08-31 13:49:56 -070063
64 </RelativeLayout>
Doris Lingf42206d2017-08-31 13:49:56 -070065</LinearLayout>