1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2018 The Android Open Source Project
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
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:minHeight="172dp"
22    android:paddingTop="8dp"
23    android:paddingBottom="16dp"
24    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
25    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
26    android:orientation="vertical"
27    android:selectable="false"
28    style="@style/EntityHeader">
29
30    <TextView
31        android:id="@+id/usage_title"
32        android:layout_width="match_parent"
33        android:layout_height="wrap_content"
34        android:textColor="?android:attr/textColorPrimary"
35        android:text="@string/data_usage_title" />
36
37    <com.android.settings.datausage.MeasurableLinearLayout
38        android:id="@+id/usage_layout"
39        android:layout_width="match_parent"
40        android:layout_height="wrap_content"
41        android:orientation="horizontal">
42
43        <TextView android:id="@+id/data_usage_view"
44            android:layout_width="wrap_content"
45            android:layout_height="wrap_content"
46            android:fontFamily="@*android:string/config_headlineFontFamily"
47            android:textAppearance="?android:attr/textAppearanceMedium"
48            android:textSize="16sp"
49            android:textColor="?android:attr/colorAccent" />
50
51        <Space
52            android:layout_width="0dp"
53            android:layout_height="wrap_content"
54            android:layout_weight="1" />
55
56        <TextView android:id="@+id/data_remaining_view"
57            android:layout_width="wrap_content"
58            android:layout_height="wrap_content"
59            android:fontFamily="@*android:string/config_headlineFontFamily"
60            android:textAppearance="?android:attr/textAppearanceMedium"
61            android:textSize="16sp" />
62
63    </com.android.settings.datausage.MeasurableLinearLayout>
64
65    <android.widget.ProgressBar
66        android:id="@+id/determinateBar"
67        style="?android:attr/progressBarStyleHorizontal"
68        android:layout_width="match_parent"
69        android:layout_height="wrap_content"
70        android:progressDrawable="@drawable/color_bar_progress"/>
71
72    <LinearLayout
73        android:id="@+id/label_bar"
74        android:layout_width="match_parent"
75        android:layout_height="wrap_content"
76        android:paddingTop="4dp"
77        android:orientation="horizontal">
78
79        <TextView android:id="@android:id/text1"
80            android:layout_width="wrap_content"
81            android:layout_height="wrap_content"
82            android:textAppearance="?android:attr/textAppearanceListItemSecondary"
83            android:textColor="?android:attr/textColorSecondary" />
84
85        <Space
86            android:layout_width="0dp"
87            android:layout_height="wrap_content"
88            android:layout_weight="1" />
89
90        <TextView android:id="@android:id/text2"
91            android:layout_width="wrap_content"
92            android:layout_height="wrap_content"
93            android:textAppearance="?android:attr/textAppearanceListItemSecondary"
94            android:textColor="?android:attr/textColorSecondary" />
95
96    </LinearLayout>
97
98    <LinearLayout
99        android:layout_width="match_parent"
100        android:layout_height="wrap_content"
101        android:paddingTop="12dp"
102        android:minHeight="54dp"
103        android:orientation="vertical">
104
105        <TextView
106            android:id="@+id/data_limits"
107            android:layout_width="match_parent"
108            android:layout_height="wrap_content"
109            android:textColor="?android:attr/textColorSecondary" />
110
111        <TextView
112            android:id="@+id/cycle_left_time"
113            android:layout_width="match_parent"
114            android:layout_height="wrap_content"
115            android:textColor="?android:attr/textColorSecondary" />
116
117        <TextView
118            android:id="@+id/carrier_and_update"
119            android:layout_width="match_parent"
120            android:layout_height="wrap_content"
121            android:textColor="?android:attr/textColorSecondary" />
122
123    </LinearLayout>
124
125</LinearLayout>
126
127