ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • TextView multiline
    과거...../개발일지 2010. 8. 12. 09:48

    TextView를 상속받아서 새로운 ui를 만드는데 ....... 갑작스럽게 multiline이 왜 안되나 해서 구글링을 검색했더니
    inputtype에 따라서 multiline이 되고 안되고 하였다.

    구글링 원문
     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
    On Sat, Jul 3, 2010 at 8:00 PM, bobo123 wrote:
    First step would be to look at the docs for TextView. Which would probably
    lead you to this if you looked it over:
    http://developer.android.com/reference/android/text/InputType.html
    how can I do it?First step would be to look at the docs for TextView. Which would probably lead you to this if you looked it over:http://developer.android.com/reference/android/text/InputType.html


    inputType조심히 씁시다.
Designed by Tistory.