I have a TextView
that should be 4 lines long .
First line text should be "YES"
Second Line ="No"
Third Line = "true"
Fourth line + "false"
How can this be done with a single TextView
?
try following for multiline TextView.
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLines="4"
android:singleLine="false"
android:text="YES\nNo\ntrue\nfalse" />
You can try \n
to set text in next line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With