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
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...
精彩评论