Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 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" |
Jan Nordqvist | dde458c | 2018-03-16 15:40:52 -0700 | [diff] [blame] | 21 | android:paddingTop="22dp" |
Sundeep Ghuman | 101c1d0 | 2018-03-12 20:28:09 -0700 | [diff] [blame] | 22 | android:paddingBottom="32dp" |
Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 23 | android:paddingStart="@dimen/preference_no_icon_padding_start" |
| 24 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
| 25 | android:orientation="vertical" |
Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 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" |
Fan Zhang | 71c402b | 2018-05-21 12:07:28 -0700 | [diff] [blame] | 33 | android:textColor="?android:attr/textColorPrimary" |
Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 34 | android:text="@string/data_usage_title" /> |
| 35 | |
Jan Nordqvist | b0802bd | 2018-04-18 15:20:03 -0700 | [diff] [blame] | 36 | <com.android.settings.datausage.MeasurableLinearLayout |
Jan Nordqvist | 8a241f6 | 2018-03-07 09:59:06 -0800 | [diff] [blame] | 37 | android:id="@+id/usage_layout" |
Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 38 | android:layout_width="match_parent" |
| 39 | android:layout_height="wrap_content" |
Jan Nordqvist | 8a241f6 | 2018-03-07 09:59:06 -0800 | [diff] [blame] | 40 | android:paddingTop="12dp" |
Jan Nordqvist | 8a241f6 | 2018-03-07 09:59:06 -0800 | [diff] [blame] | 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" |
Jan Nordqvist | b104a25 | 2018-03-16 10:19:04 -0700 | [diff] [blame] | 48 | android:textSize="16sp" |
Jan Nordqvist | 8a241f6 | 2018-03-07 09:59:06 -0800 | [diff] [blame] | 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" |
Jan Nordqvist | a2731e2 | 2018-04-05 09:30:43 -0700 | [diff] [blame] | 61 | android:textSize="16sp" /> |
Jan Nordqvist | 8a241f6 | 2018-03-07 09:59:06 -0800 | [diff] [blame] | 62 | |
Jan Nordqvist | b0802bd | 2018-04-18 15:20:03 -0700 | [diff] [blame] | 63 | </com.android.settings.datausage.MeasurableLinearLayout> |
Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 64 | |
Sundeep Ghuman | ea8d866 | 2018-03-12 22:25:23 -0700 | [diff] [blame] | 65 | <android.widget.ProgressBar |
| 66 | android:id="@+id/determinateBar" |
| 67 | style="?android:attr/progressBarStyleHorizontal" |
Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 68 | android:layout_width="match_parent" |
Andrew Sapperstein | 38bf192 | 2018-03-18 15:53:09 -0700 | [diff] [blame] | 69 | android:layout_height="wrap_content" |
| 70 | android:progressDrawable="@drawable/color_bar_progress"/> |
Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 71 | |
| 72 | <LinearLayout |
| 73 | android:id="@+id/label_bar" |
| 74 | android:layout_width="match_parent" |
| 75 | android:layout_height="wrap_content" |
Sundeep Ghuman | 101c1d0 | 2018-03-12 20:28:09 -0700 | [diff] [blame] | 76 | android:paddingTop="4dp" |
Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 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 | |
Jan Nordqvist | dde458c | 2018-03-16 15:40:52 -0700 | [diff] [blame] | 98 | <LinearLayout |
Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 99 | android:layout_width="match_parent" |
Jan Nordqvist | dde458c | 2018-03-16 15:40:52 -0700 | [diff] [blame] | 100 | android:layout_height="wrap_content" |
| 101 | android:paddingTop="12dp" |
| 102 | android:orientation="vertical"> |
Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 103 | |
Jan Nordqvist | dde458c | 2018-03-16 15:40:52 -0700 | [diff] [blame] | 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> |
Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 121 | |
| 122 | <Button |
| 123 | android:id="@+id/launch_mdp_app_button" |
Jan Nordqvist | dde458c | 2018-03-16 15:40:52 -0700 | [diff] [blame] | 124 | android:layout_marginTop="12dp" |
Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 125 | android:layout_width="wrap_content" |
| 126 | android:layout_height="wrap_content" |
Jan Nordqvist | dde458c | 2018-03-16 15:40:52 -0700 | [diff] [blame] | 127 | android:layout_gravity="start" |
Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 128 | android:text="@string/launch_mdp_app_text" |
| 129 | style="@style/ActionPrimaryButton" /> |
| 130 | |
Jan Nordqvist | 4fbe0f8 | 2018-01-22 14:43:43 -0800 | [diff] [blame] | 131 | </LinearLayout> |
| 132 | |