1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright 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:gravity="center_vertical"
23    android:minHeight="?android:attr/listPreferredItemHeight"
24    android:orientation="vertical"
25    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
26    android:paddingStart="?android:attr/listPreferredItemPaddingStart">
27    <TextView
28        android:id="@android:id/title"
29        android:layout_width="wrap_content"
30        android:layout_height="wrap_content"
31        android:layout_marginTop="@dimen/usage_indicator_preference_title_margin_top"
32        android:layout_marginBottom="@dimen/usage_indicator_preference_title_margin_bottom"
33        android:ellipsize="end"
34        android:singleLine="true"
35        android:textAppearance="?android:attr/textAppearanceLarge"/>
36
37    <ProgressBar
38        android:id="@android:id/progress"
39        style="?android:attr/progressBarStyleHorizontal"
40        android:layout_width="match_parent"
41        android:minHeight="@dimen/usage_indicator_preference_progressbar_height"
42        android:layout_height="wrap_content"
43        android:progressDrawable="@drawable/color_progress_bar"/>
44
45    <LinearLayout
46        android:id="@+id/progress_bar_labels"
47        android:layout_width="match_parent"
48        android:layout_height="wrap_content"
49        android:layout_marginTop="@dimen/usage_indicator_preference_label_margin_top"
50        android:layout_marginBottom="@dimen/usage_indicator_preference_label_margin_bottom"
51        android:orientation="horizontal">
52        <TextView android:id="@android:id/text1"
53                  android:layout_width="wrap_content"
54                  android:layout_height="wrap_content"
55                  android:textAppearance="?android:attr/textAppearanceSmall"/>
56
57        <Space
58            android:layout_width="0dp"
59            android:layout_height="wrap_content"
60            android:layout_weight="1"/>
61
62        <TextView android:id="@android:id/text2"
63                  android:layout_width="wrap_content"
64                  android:layout_height="wrap_content"
65                  android:textAppearance="?android:attr/textAppearanceSmall"/>
66    </LinearLayout>
67
68    <TextView
69        android:id="@android:id/summary"
70        android:layout_width="wrap_content"
71        android:layout_height="wrap_content"
72        android:layout_marginBottom="@dimen/usage_indicator_preference_summary_margin_bottom"
73        android:textAppearance="?android:attr/textAppearanceSmall"/>
74</LinearLayout>
75