blob: 9f5bde9901930693bcc15c2b030db7323d0f2ed1 [file] [log] [blame]
jackqdyulei51967c02017-02-02 11:25:15 -08001<?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 Zhangfe23da52017-06-03 17:17:27 -070020 android:id="@+id/battery_entity_header"
jackqdyulei51967c02017-02-02 11:25:15 -080021 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"
jackqdyulei51967c02017-02-02 11:25:15 -080027 style="@style/EntityHeader">
28
jackqdyulei51967c02017-02-02 11:25:15 -080029 <LinearLayout
jackqdyuleia8957e12017-06-26 18:40:49 -070030 android:layout_width="0dp"
jackqdyulei51967c02017-02-02 11:25:15 -080031 android:layout_height="wrap_content"
jackqdyuleia8957e12017-06-26 18:40:49 -070032 android:layout_weight="1"
33 android:layout_marginStart="56dp"
jackqdyulei6244b5d2018-06-11 14:12:13 -070034 android:layout_marginEnd="8dp"
jackqdyulei51967c02017-02-02 11:25:15 -080035 android:orientation="vertical">
36
37 <TextView
jackqdyulei273ad502017-03-28 16:22:20 -070038 android:id="@+id/battery_percent"
jackqdyuleia8957e12017-06-26 18:40:49 -070039 android:layout_width="match_parent"
jackqdyulei51967c02017-02-02 11:25:15 -080040 android:layout_height="wrap_content"
41 android:layout_marginTop="12dp"
Andrew Sappersteindd19c3c2017-06-05 18:48:10 -070042 android:fontFamily="@*android:string/config_headlineFontFamily"
jackqdyulei273ad502017-03-28 16:22:20 -070043 android:textAppearance="@android:style/TextAppearance.Material.Display1"/>
jackqdyulei51967c02017-02-02 11:25:15 -080044
45 <TextView
46 android:id="@+id/summary1"
jackqdyuleia8957e12017-06-26 18:40:49 -070047 android:layout_width="match_parent"
jackqdyulei51967c02017-02-02 11:25:15 -080048 android:layout_height="wrap_content"
jackqdyuleia8957e12017-06-26 18:40:49 -070049 android:layout_marginTop="8dp"
jackqdyuleidbe6bd32017-07-26 11:24:54 -070050 android:minLines="2"
jackqdyulei106dc452017-04-13 11:44:42 -070051 android:textAppearance="@android:style/TextAppearance.Material.Small"/>
jackqdyulei51967c02017-02-02 11:25:15 -080052
Salvador Martinezf4727ea2017-05-22 17:26:39 -070053 <TextView
54 android:id="@+id/summary2"
jackqdyuleia8957e12017-06-26 18:40:49 -070055 android:layout_width="match_parent"
Salvador Martinezf4727ea2017-05-22 17:26:39 -070056 android:layout_height="wrap_content"
57 android:textAppearance="@android:style/TextAppearance.Material.Small"/>
58
jackqdyulei51967c02017-02-02 11:25:15 -080059 </LinearLayout>
60
jackqdyulei273ad502017-03-28 16:22:20 -070061 <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"
jackqdyuleia8957e12017-06-26 18:40:49 -070065 android:layout_marginEnd="16dp"/>
jackqdyulei273ad502017-03-28 16:22:20 -070066
jackqdyulei51967c02017-02-02 11:25:15 -080067</LinearLayout>