mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[android] Migrate action button to Material 3
Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
@@ -21,12 +21,12 @@
|
|||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/close_button"
|
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_width="@dimen/place_page_top_button"
|
||||||
android:layout_height="@dimen/place_page_top_button"
|
android:layout_height="@dimen/place_page_top_button"
|
||||||
android:layout_marginEnd="@dimen/margin_half_plus"
|
android:layout_marginEnd="@dimen/margin_half_plus"
|
||||||
android:layout_marginTop="@dimen/margin_half_plus"
|
android:layout_marginTop="@dimen/margin_half_plus"
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?selectableItemBackgroundBorderless"
|
||||||
android:contentDescription="@string/close"
|
android:contentDescription="@string/close"
|
||||||
app:icon="@drawable/ic_close"
|
app:icon="@drawable/ic_close"
|
||||||
app:iconGravity="textStart"
|
app:iconGravity="textStart"
|
||||||
|
|||||||
@@ -114,10 +114,10 @@
|
|||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/share_button"
|
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_width="@dimen/place_page_top_button"
|
||||||
android:layout_height="@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:contentDescription="@string/share"
|
||||||
android:insetLeft="0dp"
|
android:insetLeft="0dp"
|
||||||
android:insetTop="0dp"
|
android:insetTop="0dp"
|
||||||
@@ -132,11 +132,11 @@
|
|||||||
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Button.Round" />
|
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Button.Round" />
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/close_button"
|
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_width="@dimen/place_page_top_button"
|
||||||
android:layout_height="@dimen/place_page_top_button"
|
android:layout_height="@dimen/place_page_top_button"
|
||||||
android:layout_marginStart="@dimen/margin_quarter"
|
android:layout_marginStart="@dimen/margin_quarter"
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?selectableItemBackgroundBorderless"
|
||||||
android:contentDescription="@string/close"
|
android:contentDescription="@string/close"
|
||||||
android:insetLeft="0dp"
|
android:insetLeft="0dp"
|
||||||
android:insetTop="0dp"
|
android:insetTop="0dp"
|
||||||
|
|||||||
Reference in New Issue
Block a user