[android] Migrate bottomsheet to Material components

Signed-off-by: Jean-Baptiste Charron <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2025-06-11 18:28:06 +02:00
committed by Harry Bond
parent 59fe3c08ab
commit 1e35bdaa0e
5 changed files with 18 additions and 17 deletions

View File

@@ -13,7 +13,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/bottomSheetTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@@ -4,7 +4,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
<com.google.android.material.imageview.ShapeableImageView
android:layout_width="match_parent"
android:layout_height="4dp"
android:layout_marginTop="@dimen/margin_quarter"

View File

@@ -11,14 +11,14 @@
android:background="?clickableBackground"
android:orientation="horizontal">
<ImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/bottom_sheet_menu_item_icon"
android:layout_width="@dimen/bookmark_icon_size"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
tools:src="@drawable/ic_menu_download"
app:tint="?android:textColorSecondary"/>
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/bottom_sheet_menu_item_text"
android:textAppearance="@style/MwmTextAppearance.Body1"
android:layout_width="0dp"
@@ -29,7 +29,7 @@
android:gravity="center_vertical"
android:singleLine="true"
tools:text="Menu Item" />
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/bottom_sheet_menu_item_badge"
style="@style/MwmWidget.Counter"
android:layout_gravity="end|center_vertical"