开发者

Android TextView Wrap

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜