Jason Monk | 9cc88e5 | 2016-02-17 08:53:10 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 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 | |
| 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | xmlns:settings="http://schemas.android.com/apk/res-auto" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
jackqdyulei | 3a03b72 | 2017-03-15 19:27:31 -0700 | [diff] [blame] | 21 | android:paddingTop="16dp" |
Fan Zhang | ec407ff | 2016-12-19 11:14:59 -0800 | [diff] [blame] | 22 | android:paddingStart="@dimen/preference_no_icon_padding_start" |
Jason Monk | 9cc88e5 | 2016-02-17 08:53:10 -0500 | [diff] [blame] | 23 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
| 24 | android:orientation="vertical"> |
| 25 | |
| 26 | <TextView |
| 27 | android:id="@+id/charge" |
| 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="wrap_content" |
jackqdyulei | 3a03b72 | 2017-03-15 19:27:31 -0700 | [diff] [blame] | 30 | android:layout_marginBottom="16dp" |
Andrew Sapperstein | e2a276f | 2017-06-10 18:00:45 -0700 | [diff] [blame] | 31 | android:fontFamily="@*android:string/config_headlineFontFamily" |
Jason Monk | 9cc88e5 | 2016-02-17 08:53:10 -0500 | [diff] [blame] | 32 | android:textAppearance="?android:attr/textAppearanceLarge" |
| 33 | android:textSize="36sp" |
| 34 | android:textColor="?android:attr/colorAccent" /> |
| 35 | |
Fan Zhang | 670ce33 | 2018-06-11 16:00:09 -0700 | [diff] [blame] | 36 | <com.android.settings.widget.UsageView |
Jason Monk | 9cc88e5 | 2016-02-17 08:53:10 -0500 | [diff] [blame] | 37 | android:id="@+id/battery_usage" |
| 38 | android:layout_width="match_parent" |
Jason Monk | 9dc9a0e | 2016-03-08 12:59:03 -0500 | [diff] [blame] | 39 | android:layout_height="141dp" |
jackqdyulei | 3a03b72 | 2017-03-15 19:27:31 -0700 | [diff] [blame] | 40 | android:layout_marginBottom="16dp" |
Jason Monk | 9cc88e5 | 2016-02-17 08:53:10 -0500 | [diff] [blame] | 41 | settings:sideLabels="@array/battery_labels" |
| 42 | android:colorAccent="?android:attr/colorAccent" |
| 43 | android:gravity="end" |
| 44 | settings:textColor="?android:attr/textColorSecondary" /> |
| 45 | |
Salvador Martinez | cbefbc2 | 2017-06-19 10:33:41 -0700 | [diff] [blame] | 46 | <TextView |
| 47 | android:id="@+id/bottom_summary" |
| 48 | android:layout_width="match_parent" |
| 49 | android:layout_height="wrap_content" |
| 50 | android:layout_marginBottom="16dp" |
| 51 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
| 52 | |
Jason Monk | 9cc88e5 | 2016-02-17 08:53:10 -0500 | [diff] [blame] | 53 | </LinearLayout> |