blob: 93001c3f02af1f28c2b448b2eea41f440039ffa2 [file] [log] [blame]
Jason Monk9cc88e52016-02-17 08:53:10 -05001<?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"
jackqdyulei3a03b722017-03-15 19:27:31 -070021 android:paddingTop="16dp"
Fan Zhangec407ff2016-12-19 11:14:59 -080022 android:paddingStart="@dimen/preference_no_icon_padding_start"
Jason Monk9cc88e52016-02-17 08:53:10 -050023 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"
jackqdyulei3a03b722017-03-15 19:27:31 -070030 android:layout_marginBottom="16dp"
Andrew Sappersteine2a276f2017-06-10 18:00:45 -070031 android:fontFamily="@*android:string/config_headlineFontFamily"
Jason Monk9cc88e52016-02-17 08:53:10 -050032 android:textAppearance="?android:attr/textAppearanceLarge"
33 android:textSize="36sp"
34 android:textColor="?android:attr/colorAccent" />
35
Fan Zhang670ce332018-06-11 16:00:09 -070036 <com.android.settings.widget.UsageView
Jason Monk9cc88e52016-02-17 08:53:10 -050037 android:id="@+id/battery_usage"
38 android:layout_width="match_parent"
Jason Monk9dc9a0e2016-03-08 12:59:03 -050039 android:layout_height="141dp"
jackqdyulei3a03b722017-03-15 19:27:31 -070040 android:layout_marginBottom="16dp"
Jason Monk9cc88e52016-02-17 08:53:10 -050041 settings:sideLabels="@array/battery_labels"
42 android:colorAccent="?android:attr/colorAccent"
43 android:gravity="end"
44 settings:textColor="?android:attr/textColorSecondary" />
45
Salvador Martinezcbefbc22017-06-19 10:33:41 -070046 <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 Monk9cc88e52016-02-17 08:53:10 -050053</LinearLayout>