1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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:background="?android:attr/selectableItemBackground"
21              android:gravity="center_vertical"
22              android:minHeight="?android:attr/listPreferredItemHeightSmall"
23              android:orientation="horizontal"
24              android:paddingBottom="@dimen/progress_bar_preference_padding_bottom"
25              android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
26              android:paddingStart="?android:attr/listPreferredItemPaddingStart"
27              android:paddingTop="@dimen/progress_bar_preference_padding_top">
28    <androidx.preference.internal.PreferenceImageView
29        android:id="@android:id/icon"
30        android:layout_width="@dimen/icon_size"
31        android:layout_height="@dimen/icon_size"
32        android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd"/>
33
34    <LinearLayout
35        android:layout_width="match_parent"
36        android:layout_height="wrap_content"
37        android:orientation="vertical">
38        <LinearLayout
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content"
41            android:orientation="horizontal">
42            <TextView
43                android:id="@android:id/title"
44                android:layout_width="wrap_content"
45                android:layout_height="wrap_content"
46                android:ellipsize="end"
47                android:singleLine="true"
48                android:textAlignment="viewStart"
49                android:textAppearance="?android:attr/textAppearanceLarge"/>
50
51            <Space
52                android:layout_width="0dp"
53                android:layout_height="wrap_content"
54                android:layout_weight="1"/>
55
56            <TextView
57                android:id="@android:id/summary"
58                android:layout_width="wrap_content"
59                android:layout_height="wrap_content"
60                android:layout_gravity="center"
61                android:maxLines="1"
62                android:textAlignment="viewEnd"
63                android:textAppearance="?android:attr/textAppearanceSmall"/>
64        </LinearLayout>
65
66        <ProgressBar
67            android:id="@android:id/progress"
68            style="?android:attr/progressBarStyleHorizontal"
69            android:layout_width="match_parent"
70            android:layout_height="wrap_content"
71            android:layout_marginTop="@dimen/progress_bar_preference_progressbar_margin_top"/>
72
73        <LinearLayout
74            android:id="@+id/progress_bar_labels"
75            android:layout_width="match_parent"
76            android:layout_height="wrap_content"
77            android:layout_marginTop="@dimen/progress_bar_preference_label_margin_top"
78            android:orientation="horizontal">
79            <TextView android:id="@android:id/text1"
80                      android:layout_width="wrap_content"
81                      android:layout_height="wrap_content"
82                      android:textAppearance="?android:attr/textAppearanceSmall"/>
83
84            <Space
85                android:layout_width="0dp"
86                android:layout_height="wrap_content"
87                android:layout_weight="1"/>
88
89            <TextView android:id="@android:id/text2"
90                      android:layout_width="wrap_content"
91                      android:layout_height="wrap_content"
92                      android:textAppearance="?android:attr/textAppearanceSmall"/>
93        </LinearLayout>
94    </LinearLayout>
95</LinearLayout>