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" 38 layout="@layout/usage_side_label" 39 android:contentDescription="@null" /> 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" 48 layout="@layout/usage_side_label" 49 android:contentDescription="@null" /> 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" 58 layout="@layout/usage_side_label" 59 android:contentDescription="@null" /> 60 61 </LinearLayout> 62 63 <com.android.settings.widget.UsageGraph 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"/> 82 <com.android.settings.widget.BottomLabelLayout 83 android:layout_width="0dp" 84 android:layout_height="wrap_content" 85 android:layout_weight="1" 86 android:orientation="horizontal"> 87 <include android:id="@+id/label_start" 88 layout="@layout/usage_side_label" 89 android:contentDescription="@null" /> 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" 98 layout="@layout/usage_side_label" 99 android:contentDescription="@null" /> 100 </com.android.settings.widget.BottomLabelLayout> 101 </LinearLayout> 102 103</LinearLayout> 104