blob: dca0972a79f3075b372dadf8a2c6c478d8228434 [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"
jackqdyulei51967c02017-02-02 11:25:15 -080025 style="@style/EntityHeader">
26
jackqdyulei51967c02017-02-02 11:25:15 -080027 <LinearLayout
jackqdyuleifd0f48d2019-01-02 15:22:55 -080028 android:layout_width="170dp"
jackqdyulei51967c02017-02-02 11:25:15 -080029 android:layout_height="wrap_content"
jackqdyuleifd0f48d2019-01-02 15:22:55 -080030 android:layout_marginStart="72dp"
jackqdyulei6244b5d2018-06-11 14:12:13 -070031 android:layout_marginEnd="8dp"
jackqdyulei51967c02017-02-02 11:25:15 -080032 android:orientation="vertical">
33
34 <TextView
jackqdyulei273ad502017-03-28 16:22:20 -070035 android:id="@+id/battery_percent"
jackqdyuleia8957e12017-06-26 18:40:49 -070036 android:layout_width="match_parent"
jackqdyulei51967c02017-02-02 11:25:15 -080037 android:layout_height="wrap_content"
38 android:layout_marginTop="12dp"
jackqdyuleifd0f48d2019-01-02 15:22:55 -080039 android:textAppearance="@style/TextAppearance.EntityHeaderTitle"
40 android:textSize="36sp" />
jackqdyulei51967c02017-02-02 11:25:15 -080041
42 <TextView
43 android:id="@+id/summary1"
jackqdyuleia8957e12017-06-26 18:40:49 -070044 android:layout_width="match_parent"
jackqdyulei51967c02017-02-02 11:25:15 -080045 android:layout_height="wrap_content"
jackqdyuleia8957e12017-06-26 18:40:49 -070046 android:layout_marginTop="8dp"
Raff Tsai648ada02019-08-19 16:40:36 +080047 android:minLines="3"
Amin Shaikha5e8bdd2018-12-19 14:42:59 -050048 android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small"/>
jackqdyuleifd0f48d2019-01-02 15:22:55 -080049 android:textColor="?android:attr/textColorPrimary"/>
jackqdyulei51967c02017-02-02 11:25:15 -080050
jackqdyulei51967c02017-02-02 11:25:15 -080051 </LinearLayout>
52
jackqdyulei273ad502017-03-28 16:22:20 -070053 <com.android.settings.fuelgauge.BatteryMeterView
54 android:id="@+id/battery_header_icon"
jackqdyuleifd0f48d2019-01-02 15:22:55 -080055 android:layout_width="match_parent"
jackqdyulei273ad502017-03-28 16:22:20 -070056 android:layout_height="@dimen/battery_meter_height"
jackqdyuleifd0f48d2019-01-02 15:22:55 -080057 android:layout_gravity="center"/>
jackqdyulei273ad502017-03-28 16:22:20 -070058
jackqdyulei51967c02017-02-02 11:25:15 -080059</LinearLayout>