fix: limit bottom sheet titles to two lines

This commit is contained in:
Bnyro 2025-02-12 15:01:51 +01:00
parent 8f856cabfe
commit d7fdbe69a2

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"