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 40 <Space 41 android:id="@+id/space1" 42 android:layout_width="wrap_content" 43 android:layout_height="0dp" 44 android:layout_weight="1" /> 45 46 <include android:id="@+id/label_middle" 47 layout="@layout/usage_side_label" /> 48 49 <Space 50 android:id="@+id/space2" 51 android:layout_width="wrap_content" 52 android:layout_height="0dp" 53 android:layout_weight="1" /> 54 55 <include android:id="@+id/label_bottom" 56 layout="@layout/usage_side_label" /> 57 58 </LinearLayout> 59 60 <com.android.settings.widget.UsageGraph 61 android:id="@+id/usage_graph" 62 android:layout_width="match_parent" 63 android:layout_height="match_parent" 64 android:layout_weight="1" 65 android:layout_marginTop="@dimen/usage_graph_margin_top_bottom" 66 android:layout_marginBottom="@dimen/usage_graph_margin_top_bottom" /> 67 68 </LinearLayout> 69 70 <LinearLayout 71 android:id="@+id/bottom_label_group" 72 android:layout_width="match_parent" 73 android:layout_height="wrap_content" 74 android:orientation="horizontal"> 75 <Space 76 android:id="@+id/bottom_label_space" 77 android:layout_width="@dimen/usage_graph_labels_width" 78 android:layout_height="wrap_content"/> 79 <com.android.settings.widget.BottomLabelLayout 80 android:layout_width="0dp" 81 android:layout_height="wrap_content" 82 android:layout_weight="1" 83 android:orientation="horizontal"> 84 <include android:id="@+id/label_start" 85 layout="@layout/usage_side_label" /> 86 87 <Space 88 android:id="@+id/spacer" 89 android:layout_width="40dp" 90 android:layout_height="wrap_content" 91 android:layout_weight="1" /> 92 93 <include android:id="@+id/label_end" 94 layout="@layout/usage_side_label" /> 95 </com.android.settings.widget.BottomLabelLayout> 96 </LinearLayout> 97 98</LinearLayout> 99