how to create a new line in the same text view?
i think you may get the idea of wat i'm trying to do if you look at the code:
here the complication is that i cannot create 开发者_StackOverflow中文版another textview for another line....
s8="hello";
t12=(TextView) findViewById(R.id.solid);
t12.setText("check"+"/n"+s8);
The correct notation for newline is \n
not /n
. TextViews in Android are multi-line enabled by default, so no other magic should be required.
精彩评论