I just want to add a new line somehow to my linear layout:
layout = (LinearLayout) findViewById (R.id.layout); ... //some other code where I\'ve appended
First you need to make your TextView to be multiline. And then use simple "\n" string for linebreak.
TextView
"\n"
final TextView nline = new TextView(this); nline.setSingleLine(false); nline.setText("first line\n"+"second line\n"+"third line");