Peter_Liang | 64f1374 | 2019-10-31 11:45:16 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2019 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 |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
| 22 | android:minHeight="?android:attr/listPreferredItemHeight" |
| 23 | android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
| 24 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
| 25 | android:background="?android:attr/selectableItemBackground" |
| 26 | android:clipToPadding="false"> |
| 27 | |
| 28 | <FrameLayout |
| 29 | android:id="@+id/icon_frame" |
| 30 | android:layout_width="wrap_content" |
| 31 | android:layout_height="wrap_content" |
| 32 | android:minWidth="56dp" |
| 33 | android:paddingEnd="12dp" |
| 34 | android:paddingTop="16dp" |
| 35 | android:paddingBottom="4dp"> |
| 36 | <ImageView |
Peter_Liang | 68d701d | 2020-02-04 19:03:50 +0800 | [diff] [blame] | 37 | android:id="@android:id/icon" |
Peter_Liang | 64f1374 | 2019-10-31 11:45:16 +0800 | [diff] [blame] | 38 | android:layout_width="wrap_content" |
| 39 | android:layout_height="wrap_content" /> |
| 40 | </FrameLayout> |
| 41 | |
| 42 | <RelativeLayout |
| 43 | android:layout_width="wrap_content" |
| 44 | android:layout_height="wrap_content" |
| 45 | android:paddingBottom="16dp" |
| 46 | android:paddingTop="16dp"> |
| 47 | |
Peter_Liang | 68d701d | 2020-02-04 19:03:50 +0800 | [diff] [blame] | 48 | <TextView android:id="@android:id/title" |
Peter_Liang | 64f1374 | 2019-10-31 11:45:16 +0800 | [diff] [blame] | 49 | android:layout_width="wrap_content" |
| 50 | android:layout_height="wrap_content"/> |
| 51 | |
Peter_Liang | 68d701d | 2020-02-04 19:03:50 +0800 | [diff] [blame] | 52 | <TextView android:id="@android:id/summary" |
Peter_Liang | 64f1374 | 2019-10-31 11:45:16 +0800 | [diff] [blame] | 53 | android:layout_width="wrap_content" |
| 54 | android:layout_height="wrap_content" |
| 55 | android:layout_below="@android:id/title" |
| 56 | android:layout_alignStart="@android:id/title" |
| 57 | android:textColor="?android:attr/textColorSecondary"/> |
| 58 | </RelativeLayout> |
| 59 | |
Peter_Liang | 68d701d | 2020-02-04 19:03:50 +0800 | [diff] [blame] | 60 | <LinearLayout android:id="@android:id/widget_frame" |
Peter_Liang | 64f1374 | 2019-10-31 11:45:16 +0800 | [diff] [blame] | 61 | android:layout_width="wrap_content" |
| 62 | android:layout_height="match_parent" |
| 63 | android:gravity="center_vertical" |
| 64 | android:orientation="vertical" /> |
Peter_Liang | 68d701d | 2020-02-04 19:03:50 +0800 | [diff] [blame] | 65 | |
Peter_Liang | 64f1374 | 2019-10-31 11:45:16 +0800 | [diff] [blame] | 66 | </LinearLayout> |