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" |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 25 | style="@style/EntityHeader"> |
| 26 | |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 27 | <LinearLayout |
jackqdyulei | fd0f48d | 2019-01-02 15:22:55 -0800 | [diff] [blame] | 28 | android:layout_width="170dp" |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 29 | android:layout_height="wrap_content" |
jackqdyulei | fd0f48d | 2019-01-02 15:22:55 -0800 | [diff] [blame] | 30 | android:layout_marginStart="72dp" |
jackqdyulei | 6244b5d | 2018-06-11 14:12:13 -0700 | [diff] [blame] | 31 | android:layout_marginEnd="8dp" |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 32 | android:orientation="vertical"> |
| 33 | |
| 34 | <TextView |
jackqdyulei | 273ad50 | 2017-03-28 16:22:20 -0700 | [diff] [blame] | 35 | android:id="@+id/battery_percent" |
jackqdyulei | a8957e1 | 2017-06-26 18:40:49 -0700 | [diff] [blame] | 36 | android:layout_width="match_parent" |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 37 | android:layout_height="wrap_content" |
| 38 | android:layout_marginTop="12dp" |
jackqdyulei | fd0f48d | 2019-01-02 15:22:55 -0800 | [diff] [blame] | 39 | android:textAppearance="@style/TextAppearance.EntityHeaderTitle" |
| 40 | android:textSize="36sp" /> |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 41 | |
| 42 | <TextView |
| 43 | android:id="@+id/summary1" |
jackqdyulei | a8957e1 | 2017-06-26 18:40:49 -0700 | [diff] [blame] | 44 | android:layout_width="match_parent" |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 45 | android:layout_height="wrap_content" |
jackqdyulei | a8957e1 | 2017-06-26 18:40:49 -0700 | [diff] [blame] | 46 | android:layout_marginTop="8dp" |
Raff Tsai | 648ada0 | 2019-08-19 16:40:36 +0800 | [diff] [blame] | 47 | android:minLines="3" |
Amin Shaikh | a5e8bdd | 2018-12-19 14:42:59 -0500 | [diff] [blame] | 48 | android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small"/> |
jackqdyulei | fd0f48d | 2019-01-02 15:22:55 -0800 | [diff] [blame] | 49 | android:textColor="?android:attr/textColorPrimary"/> |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 50 | |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 51 | </LinearLayout> |
| 52 | |
jackqdyulei | 273ad50 | 2017-03-28 16:22:20 -0700 | [diff] [blame] | 53 | <com.android.settings.fuelgauge.BatteryMeterView |
| 54 | android:id="@+id/battery_header_icon" |
jackqdyulei | fd0f48d | 2019-01-02 15:22:55 -0800 | [diff] [blame] | 55 | android:layout_width="match_parent" |
jackqdyulei | 273ad50 | 2017-03-28 16:22:20 -0700 | [diff] [blame] | 56 | android:layout_height="@dimen/battery_meter_height" |
jackqdyulei | fd0f48d | 2019-01-02 15:22:55 -0800 | [diff] [blame] | 57 | android:layout_gravity="center"/> |
jackqdyulei | 273ad50 | 2017-03-28 16:22:20 -0700 | [diff] [blame] | 58 | |
jackqdyulei | 51967c0 | 2017-02-02 11:25:15 -0800 | [diff] [blame] | 59 | </LinearLayout> |