blob: a114f0563e06c38fcf649a63fd3158ec9891e6af [file] [log] [blame]
Kevin Chang92da08f2019-10-31 18:48:35 +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/listPreferredItemHeightSmall"
23 android:gravity="center_vertical"
24 android:clipToPadding="false">
25
26 <LinearLayout
jasonwshsu0dd53522019-12-20 13:06:01 +080027 android:id="@+id/main_frame"
Kevin Chang92da08f2019-10-31 18:48:35 +080028 android:layout_width="0dp"
jasonwshsu0dd53522019-12-20 13:06:01 +080029 android:layout_height="wrap_content"
Kevin Chang92da08f2019-10-31 18:48:35 +080030 android:layout_weight="1"
Kevin Chang92da08f2019-10-31 18:48:35 +080031 android:gravity="start|center_vertical"
menghanli919e5552020-02-18 23:05:38 +080032 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
33 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
Kevin Chang92da08f2019-10-31 18:48:35 +080034
35 <FrameLayout
menghanli919e5552020-02-18 23:05:38 +080036 android:id="@+id/icon_frame"
Kevin Chang92da08f2019-10-31 18:48:35 +080037 android:layout_width="wrap_content"
menghanli919e5552020-02-18 23:05:38 +080038 android:layout_height="wrap_content"
Kevin Chang92da08f2019-10-31 18:48:35 +080039 android:minWidth="56dp"
menghanli919e5552020-02-18 23:05:38 +080040 android:paddingEnd="12dp"
41 android:paddingTop="16dp"
42 android:paddingBottom="4dp">
Kevin Chang92da08f2019-10-31 18:48:35 +080043
menghanli919e5552020-02-18 23:05:38 +080044 <ImageView
45 android:id="@android:id/icon"
Kevin Chang92da08f2019-10-31 18:48:35 +080046 android:layout_width="wrap_content"
menghanli919e5552020-02-18 23:05:38 +080047 android:layout_height="wrap_content" />
48
Kevin Chang92da08f2019-10-31 18:48:35 +080049 </FrameLayout>
50
51 <RelativeLayout
52 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
Kevin Chang92da08f2019-10-31 18:48:35 +080054 android:paddingTop="16dp"
55 android:paddingBottom="16dp">
56
57 <TextView
Kevin Change65ed3e2019-12-13 09:55:04 +080058 android:id="@android:id/title"
Kevin Chang92da08f2019-10-31 18:48:35 +080059 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"
61 android:singleLine="true"
62 android:textAppearance="?android:attr/textAppearanceListItem"
63 android:ellipsize="marquee" />
64
65 <TextView
Kevin Change65ed3e2019-12-13 09:55:04 +080066 android:id="@android:id/summary"
Kevin Chang92da08f2019-10-31 18:48:35 +080067 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
jasonwshsu0dd53522019-12-20 13:06:01 +080069 android:layout_below="@android:id/title"
70 android:layout_alignStart="@android:id/title"
Kevin Chang92da08f2019-10-31 18:48:35 +080071 android:textAppearance="?android:attr/textAppearanceListItemSecondary"
72 android:textColor="?android:attr/textColorSecondary"
73 android:maxLines="10" />
74
75 </RelativeLayout>
76
77 </LinearLayout>
78
jasonwshsu0dd53522019-12-20 13:06:01 +080079 <View
jasonwshsua2cf6a12019-12-31 12:12:49 +080080 android:id="@+id/divider"
jasonwshsu0dd53522019-12-20 13:06:01 +080081 android:layout_width="1dp"
Kevin Chang92da08f2019-10-31 18:48:35 +080082 android:layout_height="match_parent"
jasonwshsu0dd53522019-12-20 13:06:01 +080083 android:layout_marginTop="16dp"
84 android:layout_marginBottom="16dp"
85 android:background="?android:attr/listDivider" />
Kevin Chang92da08f2019-10-31 18:48:35 +080086
87 <!-- Preference should place its actual preference widget here. -->
jasonwshsu0dd53522019-12-20 13:06:01 +080088 <LinearLayout
89 android:id="@android:id/widget_frame"
Kevin Chang92da08f2019-10-31 18:48:35 +080090 android:layout_width="wrap_content"
91 android:layout_height="match_parent"
jasonwshsu0dd53522019-12-20 13:06:01 +080092 android:gravity="end|center_vertical"
menghanli15cb5c12020-02-06 17:38:36 +080093 android:minWidth="58dp"
jasonwshsu0dd53522019-12-20 13:06:01 +080094 android:orientation="vertical" />
Kevin Chang92da08f2019-10-31 18:48:35 +080095
menghanli919e5552020-02-18 23:05:38 +080096</LinearLayout>