Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c582c67 authored by David Liu's avatar David Liu
Browse files

[Expressive] Update button preference padding for expressive design

- Added 16dp padding to top and bottom.
- Create SettingsLibButtonPreferenceStyle and SettingsLibButtonPreferenceStyle.Expressive to manage common styles

Fix: 402821431
Test: presubmit + manual
Flag: EXEMPT resource only
Change-Id: Ic9389fde45bc4dc11ff97e6ed48b7847be5a4b3e
parent e492f8a6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -18,9 +18,7 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
    style="@style/SettingsLibButtonPreferenceStyle.Expressive"
    android:filterTouchesWhenObscured="true">

    <com.google.android.material.button.MaterialButton
+1 −3
Original line number Diff line number Diff line
@@ -18,9 +18,7 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
    style="@style/SettingsLibButtonPreferenceStyle.Expressive"
    android:filterTouchesWhenObscured="true">

    <com.google.android.material.button.MaterialButton
+1 −3
Original line number Diff line number Diff line
@@ -18,9 +18,7 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
    style="@style/SettingsLibButtonPreferenceStyle.Expressive"
    android:filterTouchesWhenObscured="true">

    <com.google.android.material.button.MaterialButton
+1 −3
Original line number Diff line number Diff line
@@ -18,9 +18,7 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
    style="@style/SettingsLibButtonPreferenceStyle.Expressive"
    android:filterTouchesWhenObscured="true">

    <com.google.android.material.button.MaterialButton
+1 −3
Original line number Diff line number Diff line
@@ -18,9 +18,7 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
    style="@style/SettingsLibButtonPreferenceStyle.Expressive"
    android:filterTouchesWhenObscured="true">

    <com.google.android.material.button.MaterialButton
Loading