Jeff Sharkey | 4dfa660 | 2011-06-13 00:42:03 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2011 The Android Open Source Project |
| 3 | |
| 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 | |
Jeff Sharkey | f54f435 | 2011-06-23 22:15:54 -0700 | [diff] [blame] | 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:id="@+id/app_detail" |
Jeff Sharkey | 4dfa660 | 2011-06-13 00:42:03 -0700 | [diff] [blame] | 19 | android:layout_width="match_parent" |
Jeff Sharkey | 54d0af5 | 2011-08-11 18:26:57 -0700 | [diff] [blame] | 20 | android:layout_height="wrap_content" |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 21 | android:paddingTop="4dp" |
Jeff Sharkey | 9281182 | 2012-05-04 11:47:29 -0700 | [diff] [blame] | 22 | android:orientation="vertical" |
| 23 | android:visibility="gone"> |
Jeff Sharkey | f54f435 | 2011-06-23 22:15:54 -0700 | [diff] [blame] | 24 | |
Jeff Sharkey | d39c6e4 | 2011-08-04 21:17:23 -0700 | [diff] [blame] | 25 | <LinearLayout |
Jeff Sharkey | f54f435 | 2011-06-23 22:15:54 -0700 | [diff] [blame] | 26 | android:layout_width="match_parent" |
Jeff Sharkey | 54d0af5 | 2011-08-11 18:26:57 -0700 | [diff] [blame] | 27 | android:layout_height="wrap_content" |
Fabrice Di Meglio | 79d8e80 | 2012-07-19 19:25:50 -0700 | [diff] [blame] | 28 | android:layout_marginStart="?android:attr/listPreferredItemPaddingStart" |
| 29 | android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd" |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 30 | android:layout_marginBottom="16dip" |
Jeff Sharkey | 54d0af5 | 2011-08-11 18:26:57 -0700 | [diff] [blame] | 31 | android:orientation="horizontal"> |
| 32 | |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 33 | <ImageView |
| 34 | android:id="@+id/app_icon" |
| 35 | android:layout_width="@android:dimen/app_icon_size" |
| 36 | android:layout_height="@android:dimen/app_icon_size" |
| 37 | android:layout_marginEnd="8dip" |
| 38 | android:scaleType="centerInside" |
| 39 | android:contentDescription="@null" /> |
| 40 | |
Jeff Sharkey | 54d0af5 | 2011-08-11 18:26:57 -0700 | [diff] [blame] | 41 | <LinearLayout |
| 42 | android:layout_width="0dip" |
| 43 | android:layout_height="wrap_content" |
| 44 | android:layout_weight="1" |
Jeff Sharkey | 9281182 | 2012-05-04 11:47:29 -0700 | [diff] [blame] | 45 | android:layout_marginTop="8dip" |
Jeff Sharkey | 54d0af5 | 2011-08-11 18:26:57 -0700 | [diff] [blame] | 46 | android:orientation="vertical"> |
| 47 | |
Jeff Sharkey | 54d0af5 | 2011-08-11 18:26:57 -0700 | [diff] [blame] | 48 | <LinearLayout |
| 49 | android:id="@+id/app_titles" |
| 50 | android:layout_width="match_parent" |
| 51 | android:layout_height="wrap_content" |
Fabrice Di Meglio | 9051e3c | 2012-10-17 17:50:05 -0700 | [diff] [blame] | 52 | android:orientation="vertical" |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 53 | android:paddingBottom="4dip" |
Fabrice Di Meglio | 9051e3c | 2012-10-17 17:50:05 -0700 | [diff] [blame] | 54 | android:textAlignment="viewStart" /> |
Jeff Sharkey | 54d0af5 | 2011-08-11 18:26:57 -0700 | [diff] [blame] | 55 | |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 56 | <LinearLayout |
Jeff Sharkey | 54d0af5 | 2011-08-11 18:26:57 -0700 | [diff] [blame] | 57 | android:layout_width="match_parent" |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 58 | android:layout_height="wrap_content"> |
| 59 | <TextView |
| 60 | android:id="@+id/app_title" |
| 61 | android:layout_width="0dp" |
| 62 | android:layout_height="wrap_content" |
| 63 | android:layout_weight="1" |
| 64 | android:singleLine="true" |
| 65 | android:ellipsize="marquee" |
| 66 | android:text="@string/data_usage_label_foreground" |
Amin Shaikh | a5e8bdd | 2018-12-19 14:42:59 -0500 | [diff] [blame] | 67 | android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 68 | android:textColor="?android:attr/textColorSecondary" |
| 69 | android:textAlignment="viewStart" /> |
| 70 | <TextView |
| 71 | android:id="@+id/app_foreground" |
| 72 | android:layout_width="wrap_content" |
| 73 | android:layout_height="wrap_content" |
Amin Shaikh | a5e8bdd | 2018-12-19 14:42:59 -0500 | [diff] [blame] | 74 | android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 75 | android:textColor="?android:attr/textColorSecondary" |
| 76 | android:textAlignment="viewEnd" /> |
| 77 | </LinearLayout> |
Fabrice Di Meglio | 9051e3c | 2012-10-17 17:50:05 -0700 | [diff] [blame] | 78 | |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 79 | <LinearLayout |
Jeff Sharkey | 54d0af5 | 2011-08-11 18:26:57 -0700 | [diff] [blame] | 80 | android:layout_width="match_parent" |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 81 | android:layout_height="wrap_content"> |
| 82 | <TextView |
| 83 | android:id="@+id/app_title" |
| 84 | android:layout_width="0dp" |
| 85 | android:layout_height="wrap_content" |
| 86 | android:layout_weight="1" |
| 87 | android:singleLine="true" |
| 88 | android:ellipsize="marquee" |
| 89 | android:text="@string/data_usage_label_background" |
Amin Shaikh | a5e8bdd | 2018-12-19 14:42:59 -0500 | [diff] [blame] | 90 | android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 91 | android:textColor="?android:attr/textColorSecondary" |
| 92 | android:textAlignment="viewStart" /> |
| 93 | <TextView |
| 94 | android:id="@+id/app_background" |
| 95 | android:layout_width="wrap_content" |
| 96 | android:layout_height="wrap_content" |
Amin Shaikh | a5e8bdd | 2018-12-19 14:42:59 -0500 | [diff] [blame] | 97 | android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 98 | android:textColor="?android:attr/textColorSecondary" |
| 99 | android:textAlignment="viewEnd" /> |
| 100 | </LinearLayout> |
Jeff Sharkey | 54d0af5 | 2011-08-11 18:26:57 -0700 | [diff] [blame] | 101 | |
| 102 | </LinearLayout> |
| 103 | |
Jeff Sharkey | 54d0af5 | 2011-08-11 18:26:57 -0700 | [diff] [blame] | 104 | </LinearLayout> |
Jeff Sharkey | 4dfa660 | 2011-06-13 00:42:03 -0700 | [diff] [blame] | 105 | |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 106 | <LinearLayout |
Jeff Sharkey | f54f435 | 2011-06-23 22:15:54 -0700 | [diff] [blame] | 107 | android:layout_width="match_parent" |
| 108 | android:layout_height="wrap_content" |
Fabrice Di Meglio | 79d8e80 | 2012-07-19 19:25:50 -0700 | [diff] [blame] | 109 | android:layout_marginStart="?android:attr/listPreferredItemPaddingStart" |
| 110 | android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd" |
Jeff Sharkey | 54d0af5 | 2011-08-11 18:26:57 -0700 | [diff] [blame] | 111 | android:layout_marginBottom="16dip" |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 112 | android:orientation="horizontal"> |
| 113 | <Space |
| 114 | android:layout_width="0dp" |
| 115 | android:layout_height="0dp" |
| 116 | android:layout_weight="0.5" /> |
| 117 | <Button |
| 118 | android:id="@+id/app_settings" |
Sanket Padawe | 5f7560f | 2015-06-11 10:34:38 -0700 | [diff] [blame] | 119 | android:layout_width="wrap_content" |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 120 | android:layout_height="wrap_content" |
| 121 | android:layout_weight="0.5" |
| 122 | android:text="@string/data_usage_app_settings" /> |
| 123 | </LinearLayout> |
Jeff Sharkey | 4dfa660 | 2011-06-13 00:42:03 -0700 | [diff] [blame] | 124 | |
Jeff Sharkey | f54f435 | 2011-06-23 22:15:54 -0700 | [diff] [blame] | 125 | <LinearLayout |
| 126 | android:id="@+id/app_switches" |
| 127 | android:layout_width="match_parent" |
| 128 | android:layout_height="wrap_content" |
Jeff Sharkey | b654846 | 2014-07-21 15:38:06 -0700 | [diff] [blame] | 129 | android:orientation="vertical" |
| 130 | android:showDividers="beginning|middle" |
| 131 | android:divider="?android:attr/listDivider" /> |
Jeff Sharkey | 4dfa660 | 2011-06-13 00:42:03 -0700 | [diff] [blame] | 132 | |
Jeff Sharkey | f54f435 | 2011-06-23 22:15:54 -0700 | [diff] [blame] | 133 | </LinearLayout> |