Merge pull request #7093 from Bnyro/master

fix: limit bottom sheet titles to two lines
This commit is contained in:
Bnyro 2025-02-12 15:02:14 +01:00 committed by GitHub
commit b5d3e6fbaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,8 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools">
<FrameLayout
android:id="@+id/standard_bottom_sheet"
@ -29,7 +30,8 @@
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="12dp"
android:visibility="gone">
android:visibility="gone"
tools:visibility="visible">
<TextView
android:id="@+id/bottom_sheet_title"
@ -37,7 +39,10 @@
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:layout_marginBottom="5dp"
android:textSize="27sp" />
android:maxLines="2"
android:ellipsize="end"
android:textSize="27sp"
tools:text="Very long text that is going across more than two lines in total"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"