Doris Ling | f42206d | 2017-08-31 13:49:56 -0700 | [diff] [blame] | 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 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-Freilich | 4102db3 | 2019-02-13 18:18:05 +0000 | [diff] [blame] | 23 | android:minHeight="?android:attr/listPreferredItemHeightSmall" |
Doris Ling | f42206d | 2017-08-31 13:49:56 -0700 | [diff] [blame] | 24 | android:gravity="center_vertical" |
Louis Pullen-Freilich | 4102db3 | 2019-02-13 18:18:05 +0000 | [diff] [blame] | 25 | android:paddingLeft="?android:attr/listPreferredItemPaddingLeft" |
Doris Ling | f42206d | 2017-08-31 13:49:56 -0700 | [diff] [blame] | 26 | android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
Louis Pullen-Freilich | 01dcc6cc | 2019-03-25 14:48:54 +0000 | [diff] [blame] | 27 | android:paddingRight="?android:attr/listPreferredItemPaddingRight" |
Doris Ling | f42206d | 2017-08-31 13:49:56 -0700 | [diff] [blame] | 28 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
| 29 | android:background="?android:attr/selectableItemBackground" |
Louis Pullen-Freilich | 4aa8bc2 | 2018-07-27 18:30:40 +0100 | [diff] [blame] | 30 | android:clipToPadding="false" |
Louis Pullen-Freilich | 4102db3 | 2019-02-13 18:18:05 +0000 | [diff] [blame] | 31 | android:focusable="true" |
Louis Pullen-Freilich | 4aa8bc2 | 2018-07-27 18:30:40 +0100 | [diff] [blame] | 32 | android:baselineAligned="false"> |
Doris Ling | f42206d | 2017-08-31 13:49:56 -0700 | [diff] [blame] | 33 | |
Louis Pullen-Freilich | 4aa8bc2 | 2018-07-27 18:30:40 +0100 | [diff] [blame] | 34 | <include layout="@layout/image_frame"/> |
Doris Ling | f42206d | 2017-08-31 13:49:56 -0700 | [diff] [blame] | 35 | |
| 36 | <RelativeLayout |
Louis Pullen-Freilich | a8084ba | 2018-03-19 15:40:43 +0000 | [diff] [blame] | 37 | android:layout_width="0dp" |
Doris Ling | f42206d | 2017-08-31 13:49:56 -0700 | [diff] [blame] | 38 | 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-Freilich | 4102db3 | 2019-02-13 18:18:05 +0000 | [diff] [blame] | 47 | android:singleLine="true" |
shaoweishen | 90de768 | 2018-03-27 11:39:20 +0800 | [diff] [blame] | 48 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 49 | android:textColor="?android:attr/textColorPrimary" |
Doris Ling | f42206d | 2017-08-31 13:49:56 -0700 | [diff] [blame] | 50 | 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-Freilich | 4102db3 | 2019-02-13 18:18:05 +0000 | [diff] [blame] | 57 | android:layout_alignLeft="@android:id/title" |
Doris Ling | f42206d | 2017-08-31 13:49:56 -0700 | [diff] [blame] | 58 | android:layout_alignStart="@android:id/title" |
Doris Ling | f42206d | 2017-08-31 13:49:56 -0700 | [diff] [blame] | 59 | android:textColor="?android:attr/textColorSecondary" |
| 60 | android:ellipsize="marquee" |
Louis Pullen-Freilich | 4102db3 | 2019-02-13 18:18:05 +0000 | [diff] [blame] | 61 | android:singleLine="true" |
| 62 | style="@style/PreferenceSummaryTextStyle"/> |
Doris Ling | f42206d | 2017-08-31 13:49:56 -0700 | [diff] [blame] | 63 | |
| 64 | </RelativeLayout> |
Doris Ling | f42206d | 2017-08-31 13:49:56 -0700 | [diff] [blame] | 65 | </LinearLayout> |