Text is taken from the base and inserted into the TextView; if the text is large, then everything does not fit on one line, a line break occurs, but the problem is that words can be transferred in parts (half a word on one line, half to another). How to make the word transferred entirely to a new line? This is how Layout looks like:

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/tvKod" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginLeft="10dp" android:textSize="12sp" android:textStyle="bold" > </TextView> <TextView android:id="@+id/tvName" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginLeft="10dp" android:textSize="12sp" > </TextView> 

</ LinearLayout>

  • 2
    It should by default be transferred entirely to a new line ... Give an example of what is not transferred ... - Vladyslav Matviienko

0