blob: 41968a2ae7ad9cf3ff4f60514bcb8a1e0f6a675e [file] [log] [blame]
Peter_Liang64f13742019-10-31 11:45:16 +08001<?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_Liang68d701d2020-02-04 19:03:50 +080037 android:id="@android:id/icon"
Peter_Liang64f13742019-10-31 11:45:16 +080038 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_Liang68d701d2020-02-04 19:03:50 +080048 <TextView android:id="@android:id/title"
Peter_Liang64f13742019-10-31 11:45:16 +080049 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"/>
51
Peter_Liang68d701d2020-02-04 19:03:50 +080052 <TextView android:id="@android:id/summary"
Peter_Liang64f13742019-10-31 11:45:16 +080053 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_Liang68d701d2020-02-04 19:03:50 +080060 <LinearLayout android:id="@android:id/widget_frame"
Peter_Liang64f13742019-10-31 11:45:16 +080061 android:layout_width="wrap_content"
62 android:layout_height="match_parent"
63 android:gravity="center_vertical"
64 android:orientation="vertical" />
Peter_Liang68d701d2020-02-04 19:03:50 +080065
Peter_Liang64f13742019-10-31 11:45:16 +080066</LinearLayout>