Make sure your TextView has a couple lines of code in xml:
android:lines="2" android:singleLine="false"
By default, android:singleLine
true. Thus, you can install it in XML or in Java code ie:
txtNextLine.setSingleLine(false); txtNotActivate.setText("first line\n"+"second line");
Hope this helps.
source share