-sync layout from SystemUI
Bug: 141139595
Test: make -j42 RunSettingsRoboTests
Change-Id: I5e165e953682fcfdebf0d06475bb1abd171684d9
(cherry picked from commit c71f996da9
)
Merged-In: I5e165e953682fcfdebf0d06475bb1abd171684d9
66 lines
2.4 KiB
XML
66 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2019 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/header_icon"
|
|
android:layout_width="72dp"
|
|
android:layout_height="72dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:antialias="true"
|
|
android:background="@drawable/circle_outline"
|
|
android:padding="8dp"
|
|
android:scaleType="fitCenter"/>
|
|
|
|
<TextView
|
|
android:id="@+id/header_title"
|
|
style="@style/TextAppearance.EntityHeaderTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:singleLine="false"
|
|
android:ellipsize="marquee"
|
|
android:textDirection="locale"
|
|
android:layout_marginTop="24dp"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:id="@+id/bt_battery_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"/>
|
|
<TextView
|
|
android:id="@+id/bt_battery_summary"
|
|
style="@style/TextAppearance.EntityHeaderSummary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_gravity="center_horizontal"/>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |