开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜