blob: a98ec3e1f8f0bc342f0e2a507851d11ec49e1609 [file] [log] [blame]
Alex Kuleszac6610982017-06-02 18:16:28 -04001<!--
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 Wang351ee3a2019-09-27 18:39:29 +080038 layout="@layout/usage_side_label"
39 android:contentDescription="@null" />
Alex Kuleszac6610982017-06-02 18:16:28 -040040
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 Wang351ee3a2019-09-27 18:39:29 +080048 layout="@layout/usage_side_label"
49 android:contentDescription="@null" />
Alex Kuleszac6610982017-06-02 18:16:28 -040050
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 Wang351ee3a2019-09-27 18:39:29 +080058 layout="@layout/usage_side_label"
59 android:contentDescription="@null" />
Alex Kuleszac6610982017-06-02 18:16:28 -040060
61 </LinearLayout>
62
Fan Zhang670ce332018-06-11 16:00:09 -070063 <com.android.settings.widget.UsageGraph
Alex Kuleszac6610982017-06-02 18:16:28 -040064 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 Zhang670ce332018-06-11 16:00:09 -070082 <com.android.settings.widget.BottomLabelLayout
Alex Kuleszac6610982017-06-02 18:16:28 -040083 android:layout_width="0dp"
84 android:layout_height="wrap_content"
85 android:layout_weight="1"
Leo Hsu2e4f9fe2018-04-20 10:40:08 +080086 android:orientation="horizontal">
Alex Kuleszac6610982017-06-02 18:16:28 -040087 <include android:id="@+id/label_start"
Arc Wang351ee3a2019-09-27 18:39:29 +080088 layout="@layout/usage_side_label"
89 android:contentDescription="@null" />
Alex Kuleszac6610982017-06-02 18:16:28 -040090
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 Wang351ee3a2019-09-27 18:39:29 +080098 layout="@layout/usage_side_label"
99 android:contentDescription="@null" />
Fan Zhang670ce332018-06-11 16:00:09 -0700100 </com.android.settings.widget.BottomLabelLayout>
Alex Kuleszac6610982017-06-02 18:16:28 -0400101 </LinearLayout>
102
103</LinearLayout>