79336844

Date: 2025-01-07 17:30:49
Score: 0.5
Natty:
Report link

Use android:maxLines="2" combined with android:ellipsize="end"

 <TextView
    android:id="@+id/____"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginHorizontal="10dp"
    android:layout_marginBottom="10dp"
    android:ellipsize="end"
    android:maxLines="2"
    android:textColor="@color/black"
    android:textSize="16sp"
    app:layout_constraintBottom_toTopOf="@+id/_____"
    app:layout_constraintEnd_toStartOf="@+id/_____"
    app:layout_constraintStart_toEndOf="@id/startLocationPin"
    app:layout_constraintTop_toTopOf="parent"
    tools:text="Line 1\nLine 2" />

If this solution does not fit with your problem please let me know.

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Tanim reja