blob: ca368b9488dc344a8b45f8e4333a2298cd0ee68d [file] [log] [blame]
Jeff Sharkey25976252015-06-15 21:08:56 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 android:layout_width="match_parent"
19 android:layout_height="wrap_content"
20 android:minHeight="?android:attr/listPreferredItemHeightSmall"
21 android:gravity="center_vertical"
22 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
23 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
24 android:background="?android:attr/activatedBackgroundIndicator"
25 android:clipToPadding="false">
26
27 <LinearLayout
28 android:id="@+id/icon_frame"
29 android:layout_width="wrap_content"
30 android:layout_height="wrap_content"
Jeff Sharkey25976252015-06-15 21:08:56 -070031 android:gravity="start|center_vertical"
Doris Lingf28283a2017-10-30 17:57:46 -070032 android:minWidth="56dp"
Jeff Sharkey25976252015-06-15 21:08:56 -070033 android:orientation="horizontal"
Jeff Sharkey25976252015-06-15 21:08:56 -070034 android:paddingTop="4dp"
35 android:paddingBottom="4dp">
36 <com.android.internal.widget.PreferenceImageView
37 android:id="@android:id/icon"
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
40 android:maxWidth="48dp"
41 android:maxHeight="48dp" />
42 </LinearLayout>
43
44 <RelativeLayout
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:layout_weight="1"
48 android:paddingTop="16dp"
49 android:paddingBottom="16dp">
50
51 <TextView android:id="@android:id/title"
52 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
54 android:singleLine="true"
55 android:textAppearance="?android:attr/textAppearanceListItem"
56 android:ellipsize="marquee" />
57
58 <TextView android:id="@android:id/summary"
59 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"
61 android:layout_below="@android:id/title"
62 android:layout_alignStart="@android:id/title"
63 android:textAppearance="?android:attr/textAppearanceListItemSecondary"
64 android:textColor="?android:attr/textColorSecondary"
65 android:maxLines="10" />
66
67 <ProgressBar
68 android:id="@android:id/progress"
69 android:layout_width="match_parent"
70 android:layout_height="8dp"
71 android:layout_marginTop="8dp"
72 android:layout_below="@android:id/summary"
73 android:layout_alignStart="@android:id/summary"
74 android:max="100"
75 style="?android:attr/progressBarStyleHorizontal" />
76
77 </RelativeLayout>
78
79 <!-- Preference should place its actual preference widget here. -->
80 <LinearLayout android:id="@android:id/widget_frame"
81 android:layout_width="wrap_content"
82 android:layout_height="match_parent"
83 android:gravity="end|center_vertical"
84 android:paddingStart="16dp"
85 android:orientation="vertical" />
86
87</LinearLayout>