Tony Mantler | 53c2c0d | 2015-03-30 14:13:30 -0700 | [diff] [blame] | 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" |
Tony Mantler | e04300d | 2015-09-08 15:36:13 -0700 | [diff] [blame^] | 26 | android:background="?android:attr/selectableItemBackground" |
Tony Mantler | 0e5468c | 2015-08-24 13:23:12 -0700 | [diff] [blame] | 27 | android:clipToPadding="false" |
| 28 | android:focusable="true" > |
Tony Mantler | 53c2c0d | 2015-03-30 14:13:30 -0700 | [diff] [blame] | 29 | |
| 30 | <LinearLayout |
| 31 | android:id="@+id/icon_frame" |
| 32 | android:layout_width="wrap_content" |
| 33 | android:layout_height="wrap_content" |
| 34 | android:layout_marginStart="-4dp" |
| 35 | android:minWidth="60dp" |
| 36 | android:gravity="start|center_vertical" |
| 37 | android:orientation="horizontal" |
| 38 | android:paddingEnd="12dp" |
| 39 | android:paddingTop="4dp" |
| 40 | android:paddingBottom="4dp"> |
| 41 | <android.support.v7.internal.widget.PreferenceImageView |
Tony Mantler | 0e5468c | 2015-08-24 13:23:12 -0700 | [diff] [blame] | 42 | android:id="@android:id/icon" |
Tony Mantler | 53c2c0d | 2015-03-30 14:13:30 -0700 | [diff] [blame] | 43 | android:layout_width="wrap_content" |
| 44 | android:layout_height="wrap_content" |
| 45 | app:maxWidth="48dp" |
| 46 | app:maxHeight="48dp" /> |
| 47 | </LinearLayout> |
| 48 | |
Tony Mantler | 0e5468c | 2015-08-24 13:23:12 -0700 | [diff] [blame] | 49 | <RelativeLayout |
| 50 | android:layout_width="wrap_content" |
| 51 | android:layout_height="wrap_content" |
| 52 | android:layout_weight="1" |
| 53 | android:paddingTop="16dp" |
| 54 | android:paddingBottom="16dp"> |
Tony Mantler | 53c2c0d | 2015-03-30 14:13:30 -0700 | [diff] [blame] | 55 | |
Tony Mantler | 0e5468c | 2015-08-24 13:23:12 -0700 | [diff] [blame] | 56 | <TextView android:id="@android:id/title" |
| 57 | android:layout_width="wrap_content" |
| 58 | android:layout_height="wrap_content" |
| 59 | android:singleLine="true" |
| 60 | android:textAppearance="?android:attr/textAppearanceListItem" |
| 61 | android:ellipsize="marquee" /> |
Tony Mantler | 53c2c0d | 2015-03-30 14:13:30 -0700 | [diff] [blame] | 62 | |
Tony Mantler | 0e5468c | 2015-08-24 13:23:12 -0700 | [diff] [blame] | 63 | <TextView android:id="@android:id/summary" |
| 64 | android:layout_width="wrap_content" |
| 65 | android:layout_height="wrap_content" |
| 66 | android:layout_below="@android:id/title" |
| 67 | android:layout_alignStart="@android:id/title" |
| 68 | android:textAppearance="?android:attr/textAppearanceListItemSecondary" |
| 69 | android:textColor="?android:attr/textColorSecondary" |
| 70 | android:maxLines="10" /> |
Tony Mantler | 53c2c0d | 2015-03-30 14:13:30 -0700 | [diff] [blame] | 71 | |
Tony Mantler | 0e5468c | 2015-08-24 13:23:12 -0700 | [diff] [blame] | 72 | </RelativeLayout> |
Tony Mantler | 53c2c0d | 2015-03-30 14:13:30 -0700 | [diff] [blame] | 73 | |
Tony Mantler | 0e5468c | 2015-08-24 13:23:12 -0700 | [diff] [blame] | 74 | <!-- Preference should place its actual preference widget here. --> |
| 75 | <LinearLayout android:id="@android:id/widget_frame" |
| 76 | android:layout_width="wrap_content" |
| 77 | android:layout_height="match_parent" |
| 78 | android:gravity="end|center_vertical" |
| 79 | android:paddingStart="16dp" |
| 80 | android:orientation="vertical" /> |
Tony Mantler | 53c2c0d | 2015-03-30 14:13:30 -0700 | [diff] [blame] | 81 | |
| 82 | </LinearLayout> |