开发者

how to create a new line in the same text view?

开发者 https://www.devze.com 2023-01-18 13:34 出处:网络
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....

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

精彩评论

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

关注公众号