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:paddingTop="22dp"
22    android:paddingBottom="32dp"
23    android:paddingStart="@dimen/preference_no_icon_padding_start"
24    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
25    android:orientation="vertical"
26    android:selectable="false"
27    style="@style/EntityHeader">
28
29    <TextView
30        android:id="@+id/usage_title"
31        android:layout_width="match_parent"
32        android:layout_height="wrap_content"
33        android:textColor="?android:attr/textColorPrimary"
34        android:text="@string/data_usage_title" />
35
36    <com.android.settings.datausage.MeasurableLinearLayout
37        android:id="@+id/usage_layout"
38        android:layout_width="match_parent"
39        android:layout_height="wrap_content"
40        android:paddingTop="12dp"
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:orientation="vertical">
103
104        <TextView
105            android:id="@+id/data_limits"
106            android:layout_width="match_parent"
107            android:layout_height="wrap_content"
108            android:textColor="?android:attr/textColorSecondary" />
109
110        <TextView
111            android:id="@+id/cycle_left_time"
112            android:layout_width="match_parent"
113            android:layout_height="wrap_content" />
114
115        <TextView
116            android:id="@+id/carrier_and_update"
117            android:layout_width="match_parent"
118            android:layout_height="wrap_content" />
119
120    </LinearLayout>
121
122    <Button
123        android:id="@+id/launch_mdp_app_button"
124        android:layout_marginTop="12dp"
125        android:layout_width="wrap_content"
126        android:layout_height="wrap_content"
127        android:layout_gravity="start"
128        android:text="@string/launch_mdp_app_text"
129        style="@style/ActionPrimaryButton" />
130
131</LinearLayout>
132
133