1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2018 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18<LinearLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:settings="http://schemas.android.com/apk/res-auto" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 style="@style/SettingsBarChart"> 24 25 <TextView 26 android:id="@+id/bar_chart_title" 27 style="@style/SettingsBarChartTitle"/> 28 29 <LinearLayout 30 android:id="@+id/bar_views_container" 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:gravity="center" 34 android:orientation="vertical"> 35 36 <LinearLayout 37 android:layout_width="match_parent" 38 android:layout_height="wrap_content" 39 android:layout_marginBottom="20dp" 40 android:gravity="center|bottom"> 41 42 <com.android.settingslib.widget.BarView 43 android:id="@+id/bar_view1" 44 style="@style/SettingsBarViewStyle" 45 settings:barColor="@color/settings_bar_view_1_color"/> 46 <com.android.settingslib.widget.BarView 47 android:id="@+id/bar_view2" 48 style="@style/SettingsBarViewStyle" 49 settings:barColor="@color/settings_bar_view_2_color"/> 50 <com.android.settingslib.widget.BarView 51 android:id="@+id/bar_view3" 52 style="@style/SettingsBarViewStyle" 53 settings:barColor="@color/settings_bar_view_3_color"/> 54 <com.android.settingslib.widget.BarView 55 android:id="@+id/bar_view4" 56 style="@style/SettingsBarViewStyle" 57 settings:barColor="@color/settings_bar_view_4_color"/> 58 </LinearLayout> 59 60 <Button 61 android:id="@+id/bar_chart_details" 62 style="@style/SettingsBarChartDetailsButton"/> 63 </LinearLayout> 64 65 <TextView 66 android:id="@+id/empty_view" 67 style="@style/SettingsBarChartEmptyText"/> 68 69</LinearLayout> 70