blob: 6617ac9cacffff5246b81d505696983428dd5bdb [file] [log] [blame]
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -08001<?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"
Jan Nordqvistdde458c2018-03-16 15:40:52 -070021 android:paddingTop="22dp"
Sundeep Ghuman101c1d02018-03-12 20:28:09 -070022 android:paddingBottom="32dp"
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -080023 android:paddingStart="@dimen/preference_no_icon_padding_start"
24 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
25 android:orientation="vertical"
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -080026 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"
Fan Zhang71c402b2018-05-21 12:07:28 -070033 android:textColor="?android:attr/textColorPrimary"
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -080034 android:text="@string/data_usage_title" />
35
Jan Nordqvistb0802bd2018-04-18 15:20:03 -070036 <com.android.settings.datausage.MeasurableLinearLayout
Jan Nordqvist8a241f62018-03-07 09:59:06 -080037 android:id="@+id/usage_layout"
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -080038 android:layout_width="match_parent"
39 android:layout_height="wrap_content"
Jan Nordqvist8a241f62018-03-07 09:59:06 -080040 android:paddingTop="12dp"
Jan Nordqvist8a241f62018-03-07 09:59:06 -080041 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"
Jan Nordqvistb104a252018-03-16 10:19:04 -070048 android:textSize="16sp"
Jan Nordqvist8a241f62018-03-07 09:59:06 -080049 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"
Jan Nordqvista2731e22018-04-05 09:30:43 -070061 android:textSize="16sp" />
Jan Nordqvist8a241f62018-03-07 09:59:06 -080062
Jan Nordqvistb0802bd2018-04-18 15:20:03 -070063 </com.android.settings.datausage.MeasurableLinearLayout>
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -080064
Sundeep Ghumanea8d8662018-03-12 22:25:23 -070065 <android.widget.ProgressBar
66 android:id="@+id/determinateBar"
67 style="?android:attr/progressBarStyleHorizontal"
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -080068 android:layout_width="match_parent"
Andrew Sapperstein38bf1922018-03-18 15:53:09 -070069 android:layout_height="wrap_content"
70 android:progressDrawable="@drawable/color_bar_progress"/>
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -080071
72 <LinearLayout
73 android:id="@+id/label_bar"
74 android:layout_width="match_parent"
75 android:layout_height="wrap_content"
Sundeep Ghuman101c1d02018-03-12 20:28:09 -070076 android:paddingTop="4dp"
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -080077 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
Jan Nordqvistdde458c2018-03-16 15:40:52 -070098 <LinearLayout
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -080099 android:layout_width="match_parent"
Jan Nordqvistdde458c2018-03-16 15:40:52 -0700100 android:layout_height="wrap_content"
101 android:paddingTop="12dp"
102 android:orientation="vertical">
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -0800103
Jan Nordqvistdde458c2018-03-16 15:40:52 -0700104 <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>
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -0800121
122 <Button
123 android:id="@+id/launch_mdp_app_button"
Jan Nordqvistdde458c2018-03-16 15:40:52 -0700124 android:layout_marginTop="12dp"
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -0800125 android:layout_width="wrap_content"
126 android:layout_height="wrap_content"
Jan Nordqvistdde458c2018-03-16 15:40:52 -0700127 android:layout_gravity="start"
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -0800128 android:text="@string/launch_mdp_app_text"
129 style="@style/ActionPrimaryButton" />
130
Jan Nordqvist4fbe0f82018-01-22 14:43:43 -0800131</LinearLayout>
132