I'm having trouble adding a new line after every 20 characters. I've seen many posts and am getting confused about the android: commands and which commands should be used for TextView/EditText.
This is the XML code I have written for my textview:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/descriptionResult"
android:text="abcdefghijklmnopqrstuvwz abcdefghijklmnopqrstuvwz"
android:textColor="#FFFFFF"
android:maxEms="20"
android:singleLine="false"/>
I've also tried a variation of commands such as:
android:maxLength(20) - Which cuts off my text but does not display the rest on a new line
android:maxWidth(100p) - Error
The Error I keep Getting is:
Exception raised during rendering: java.util.Locale.toLanguageTag()Ljava/lang/String;
Does anyone have a solution to my problem does this have to be done in java? If so how?, thank you in advance