Is there any way to programmatically set text in TextView to be in two lines ?
Type \n for a new line
This will be\ntwo lines
will look like
This will be
two lines
Also, be sure that the TextViews setsingleline() isn't set to true
TextView tv = new TextView(this);
tv.setText("First Line \n this is Second Line");
setContentView(tv);
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