开发者

Android TextView Wrap

开发者 https://www.devze.com 2023-03-11 13:18 出处:网络
Here is my problem. How to make text don\'开发者_运维技巧t wrap? I already tried to make text smaller. Didn\'t work. Tried to do singleline=\"true\". Here iswhat he do(2 screen shot 6-7 textview)

Here is my problem. How to make text don'开发者_运维技巧t wrap?

I already tried to make text smaller. Didn't work. Tried to do singleline="true". Here is what he do(2 screen shot 6-7 textview)

1 Screenshot) Here is I made it in the Eclipse

2 Screenshot) Here is how it showen in the emulator

Android TextView Wrap

Android TextView Wrap


Try setting android:ellipsize to none for each TextView. For more details see documentation on this attribute.

From xml:

<TextView ... android:ellipsize="none" />

From code:

 TextView textView = new TextView(context);
 ...
 textView.setEllipsize(null);


try giving android:maxLines=1... singleLine property should also work...

0

精彩评论

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