[android] Migrate action button to Material 3

Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2025-09-28 19:09:57 +02:00
committed by x7z4w
parent ccd3f9813a
commit e670bef0a2
2 changed files with 6 additions and 6 deletions

View File

@@ -21,12 +21,12 @@
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.button.MaterialButton
android:id="@+id/close_button"
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
style="@style/Widget.Material3.Button.UnelevatedButton"
android:layout_width="@dimen/place_page_top_button"
android:layout_height="@dimen/place_page_top_button"
android:layout_marginEnd="@dimen/margin_half_plus"
android:layout_marginTop="@dimen/margin_half_plus"
android:background="?attr/selectableItemBackgroundBorderless"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/close"
app:icon="@drawable/ic_close"
app:iconGravity="textStart"

View File

@@ -114,10 +114,10 @@
android:layout_height="wrap_content">
<com.google.android.material.button.MaterialButton
android:id="@+id/share_button"
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
style="@style/Widget.Material3.Button.UnelevatedButton"
android:layout_width="@dimen/place_page_top_button"
android:layout_height="@dimen/place_page_top_button"
android:background="?attr/selectableItemBackgroundBorderless"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/share"
android:insetLeft="0dp"
android:insetTop="0dp"
@@ -132,11 +132,11 @@
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Button.Round" />
<com.google.android.material.button.MaterialButton
android:id="@+id/close_button"
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
style="@style/Widget.Material3.Button.UnelevatedButton"
android:layout_width="@dimen/place_page_top_button"
android:layout_height="@dimen/place_page_top_button"
android:layout_marginStart="@dimen/margin_quarter"
android:background="?attr/selectableItemBackgroundBorderless"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/close"
android:insetLeft="0dp"
android:insetTop="0dp"