Update battery dashboard based on spec
Following CL will change "battery suggestion" to card layout. Bug: 119618813 Test: Screenshot Change-Id: If71e5c0e4a4e230358aa0c8aa584028082f31d2e
This commit is contained in:
@@ -22,15 +22,12 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="24dp"
|
||||
android:paddingBottom="24dp"
|
||||
style="@style/EntityHeader">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_width="170dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="56dp"
|
||||
android:layout_marginStart="72dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
@@ -39,8 +36,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamily"
|
||||
android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Display1"/>
|
||||
android:textAppearance="@style/TextAppearance.EntityHeaderTitle"
|
||||
android:textSize="36sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/summary1"
|
||||
@@ -49,19 +46,20 @@
|
||||
android:layout_marginTop="8dp"
|
||||
android:minLines="2"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small"/>
|
||||
android:textColor="?android:attr/textColorPrimary"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/summary2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small"/>
|
||||
|
||||
android:textColor="?android:attr/textColorPrimary"/>
|
||||
</LinearLayout>
|
||||
|
||||
<com.android.settings.fuelgauge.BatteryMeterView
|
||||
android:id="@+id/battery_header_icon"
|
||||
android:layout_width="@dimen/battery_meter_width"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/battery_meter_height"
|
||||
android:layout_marginEnd="16dp"/>
|
||||
android:layout_gravity="center"/>
|
||||
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user