jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2017 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" |
Fan Zhang | fe23da5 | 2017-06-03 17:17:27 -0700 | [diff] [blame] | 20 | android:id="@+id/battery_entity_header" |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="match_parent" |
| 23 | android:layout_gravity="center" |
| 24 | android:orientation="horizontal" |
| 25 | android:paddingTop="24dp" |
| 26 | android:paddingBottom="24dp" |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 27 | style="@style/EntityHeader"> |
| 28 | |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 29 | <LinearLayout |
jackqdyulei | a8957e1 | 2017-06-26 18:40:49 -0700 | [diff] [blame] | 30 | android:layout_width="0dp" |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 31 | android:layout_height="wrap_content" |
jackqdyulei | a8957e1 | 2017-06-26 18:40:49 -0700 | [diff] [blame] | 32 | android:layout_weight="1" |
| 33 | android:layout_marginStart="56dp" |
jackqdyulei | 6244b5d | 2018-06-11 14:12:13 -0700 | [diff] [blame] | 34 | android:layout_marginEnd="8dp" |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 35 | android:orientation="vertical"> |
| 36 | |
| 37 | <TextView |
jackqdyulei | 273ad50 | 2017-03-28 16:22:20 -0700 | [diff] [blame] | 38 | android:id="@+id/battery_percent" |
jackqdyulei | a8957e1 | 2017-06-26 18:40:49 -0700 | [diff] [blame] | 39 | android:layout_width="match_parent" |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 40 | android:layout_height="wrap_content" |
| 41 | android:layout_marginTop="12dp" |
Andrew Sapperstein | dd19c3c | 2017-06-05 18:48:10 -0700 | [diff] [blame] | 42 | android:fontFamily="@*android:string/config_headlineFontFamily" |
jackqdyulei | 273ad50 | 2017-03-28 16:22:20 -0700 | [diff] [blame] | 43 | android:textAppearance="@android:style/TextAppearance.Material.Display1"/> |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 44 | |
| 45 | <TextView |
| 46 | android:id="@+id/summary1" |
jackqdyulei | a8957e1 | 2017-06-26 18:40:49 -0700 | [diff] [blame] | 47 | android:layout_width="match_parent" |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 48 | android:layout_height="wrap_content" |
jackqdyulei | a8957e1 | 2017-06-26 18:40:49 -0700 | [diff] [blame] | 49 | android:layout_marginTop="8dp" |
jackqdyulei | dbe6bd3 | 2017-07-26 11:24:54 -0700 | [diff] [blame] | 50 | android:minLines="2" |
jackqdyulei | 106dc45 | 2017-04-13 11:44:42 -0700 | [diff] [blame] | 51 | android:textAppearance="@android:style/TextAppearance.Material.Small"/> |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 52 | |
Salvador Martinez | f4727ea | 2017-05-22 17:26:39 -0700 | [diff] [blame] | 53 | <TextView |
| 54 | android:id="@+id/summary2" |
jackqdyulei | a8957e1 | 2017-06-26 18:40:49 -0700 | [diff] [blame] | 55 | android:layout_width="match_parent" |
Salvador Martinez | f4727ea | 2017-05-22 17:26:39 -0700 | [diff] [blame] | 56 | android:layout_height="wrap_content" |
| 57 | android:textAppearance="@android:style/TextAppearance.Material.Small"/> |
| 58 | |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 59 | </LinearLayout> |
| 60 | |
jackqdyulei | 273ad50 | 2017-03-28 16:22:20 -0700 | [diff] [blame] | 61 | <com.android.settings.fuelgauge.BatteryMeterView |
| 62 | android:id="@+id/battery_header_icon" |
| 63 | android:layout_width="@dimen/battery_meter_width" |
| 64 | android:layout_height="@dimen/battery_meter_height" |
jackqdyulei | a8957e1 | 2017-06-26 18:40:49 -0700 | [diff] [blame] | 65 | android:layout_marginEnd="16dp"/> |
jackqdyulei | 273ad50 | 2017-03-28 16:22:20 -0700 | [diff] [blame] | 66 | |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 67 | </LinearLayout> |