I have a TextView with a text composed of two words, where the second is dynamic (like "Number of device: xxxxxxxxxxxx". I want that if the String is too long, it will display like
Number of device:
xxxxxxxxxxxx
Now it is like
Number of device: xxxxxxx
xxx
<TextView
android:id="@+id/ObuTransitElementObuDeviceCode"
android:layout_marginTop="6dp"
android:layout_marginStart="16dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/empty_text_placeholder"
android:breakStrategy="balanced"
android:textAlignment="textEnd" />