Alex Kulesza | c661098 | 2017-06-02 18:16:28 -0400 | [diff] [blame] | 1 | <!-- |
| 2 | Copyright (C) 2016 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 | <LinearLayout |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="wrap_content" |
| 20 | android:orientation="vertical"> |
| 21 | |
| 22 | <LinearLayout |
| 23 | android:id="@+id/graph_label_group" |
| 24 | android:layout_width="match_parent" |
| 25 | android:layout_height="0dp" |
| 26 | android:layout_weight="1" |
| 27 | android:orientation="horizontal" |
| 28 | android:clipChildren="false" |
| 29 | android:clipToPadding="false"> |
| 30 | |
| 31 | <LinearLayout |
| 32 | android:id="@+id/label_group" |
| 33 | android:layout_width="@dimen/usage_graph_labels_width" |
| 34 | android:layout_height="match_parent" |
| 35 | android:orientation="vertical"> |
| 36 | |
| 37 | <include android:id="@+id/label_top" |
Arc Wang | 351ee3a | 2019-09-27 18:39:29 +0800 | [diff] [blame] | 38 | layout="@layout/usage_side_label" |
| 39 | android:contentDescription="@null" /> |
Alex Kulesza | c661098 | 2017-06-02 18:16:28 -0400 | [diff] [blame] | 40 | |
| 41 | <Space |
| 42 | android:id="@+id/space1" |
| 43 | android:layout_width="wrap_content" |
| 44 | android:layout_height="0dp" |
| 45 | android:layout_weight="1" /> |
| 46 | |
| 47 | <include android:id="@+id/label_middle" |
Arc Wang | 351ee3a | 2019-09-27 18:39:29 +0800 | [diff] [blame] | 48 | layout="@layout/usage_side_label" |
| 49 | android:contentDescription="@null" /> |
Alex Kulesza | c661098 | 2017-06-02 18:16:28 -0400 | [diff] [blame] | 50 | |
| 51 | <Space |
| 52 | android:id="@+id/space2" |
| 53 | android:layout_width="wrap_content" |
| 54 | android:layout_height="0dp" |
| 55 | android:layout_weight="1" /> |
| 56 | |
| 57 | <include android:id="@+id/label_bottom" |
Arc Wang | 351ee3a | 2019-09-27 18:39:29 +0800 | [diff] [blame] | 58 | layout="@layout/usage_side_label" |
| 59 | android:contentDescription="@null" /> |
Alex Kulesza | c661098 | 2017-06-02 18:16:28 -0400 | [diff] [blame] | 60 | |
| 61 | </LinearLayout> |
| 62 | |
Fan Zhang | 670ce33 | 2018-06-11 16:00:09 -0700 | [diff] [blame] | 63 | <com.android.settings.widget.UsageGraph |
Alex Kulesza | c661098 | 2017-06-02 18:16:28 -0400 | [diff] [blame] | 64 | android:id="@+id/usage_graph" |
| 65 | android:layout_width="match_parent" |
| 66 | android:layout_height="match_parent" |
| 67 | android:layout_weight="1" |
| 68 | android:layout_marginTop="@dimen/usage_graph_margin_top_bottom" |
| 69 | android:layout_marginBottom="@dimen/usage_graph_margin_top_bottom" /> |
| 70 | |
| 71 | </LinearLayout> |
| 72 | |
| 73 | <LinearLayout |
| 74 | android:id="@+id/bottom_label_group" |
| 75 | android:layout_width="match_parent" |
| 76 | android:layout_height="wrap_content" |
| 77 | android:orientation="horizontal"> |
| 78 | <Space |
| 79 | android:id="@+id/bottom_label_space" |
| 80 | android:layout_width="@dimen/usage_graph_labels_width" |
| 81 | android:layout_height="wrap_content"/> |
Fan Zhang | 670ce33 | 2018-06-11 16:00:09 -0700 | [diff] [blame] | 82 | <com.android.settings.widget.BottomLabelLayout |
Alex Kulesza | c661098 | 2017-06-02 18:16:28 -0400 | [diff] [blame] | 83 | android:layout_width="0dp" |
| 84 | android:layout_height="wrap_content" |
| 85 | android:layout_weight="1" |
Leo Hsu | 2e4f9fe | 2018-04-20 10:40:08 +0800 | [diff] [blame] | 86 | android:orientation="horizontal"> |
Alex Kulesza | c661098 | 2017-06-02 18:16:28 -0400 | [diff] [blame] | 87 | <include android:id="@+id/label_start" |
Arc Wang | 351ee3a | 2019-09-27 18:39:29 +0800 | [diff] [blame] | 88 | layout="@layout/usage_side_label" |
| 89 | android:contentDescription="@null" /> |
Alex Kulesza | c661098 | 2017-06-02 18:16:28 -0400 | [diff] [blame] | 90 | |
| 91 | <Space |
| 92 | android:id="@+id/spacer" |
| 93 | android:layout_width="40dp" |
| 94 | android:layout_height="wrap_content" |
| 95 | android:layout_weight="1" /> |
| 96 | |
| 97 | <include android:id="@+id/label_end" |
Arc Wang | 351ee3a | 2019-09-27 18:39:29 +0800 | [diff] [blame] | 98 | layout="@layout/usage_side_label" |
| 99 | android:contentDescription="@null" /> |
Fan Zhang | 670ce33 | 2018-06-11 16:00:09 -0700 | [diff] [blame] | 100 | </com.android.settings.widget.BottomLabelLayout> |
Alex Kulesza | c661098 | 2017-06-02 18:16:28 -0400 | [diff] [blame] | 101 | </LinearLayout> |
| 102 | |
| 103 | </LinearLayout> |