[Expressive Battery] Implement the expressive style for anomaly hint chip

For expressive style:
- Update the padding start & end of pref with anomaly hint
- Add the new background res to update anomaly hint style to outlined
- Reduce the vertical space between pref text and anomaly hint.

Bug: 349652542
Test: visual
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Change-Id: Iec9240d2edba5042c5a1f740b662db75bea41d0e
This commit is contained in:
mxyyiyi
2025-02-10 16:05:25 +08:00
parent a2bdafaf5e
commit 4f9e8cb751
5 changed files with 114 additions and 11 deletions

View File

@@ -17,13 +17,12 @@
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical|start"
android:padding="8dp"
android:background="@drawable/battery_hints_chip_bg_ripple">
android:id="@+id/warning_chip"
android:padding="8dp">
<ImageView
android:layout_width="16dp"