Saturday, July 3, 2010

[android-developers] How to realize TextView control has wordwrap functionallity.

Hi,
I am a beginner of Android, I have a question need to resovlve.
String s = "aaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbb";

TextView textView = new TextView(this);
textView.setText(s);

The above code only show part of s on the screen in a line.
I wish the textview control can automatically wrap it in multiline.
how can I do it? thanks.

Bo

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment