开发者

Android - TextView dynamic height issue

I have a RelativeLayout whose layout_height is set to "wrap_content" and inside that I have a TextView whose te开发者_运维问答xt is set at runtime. I have set android:layout_height="wrap_content" to my TextView, but it doesn't seems to change the height of the Textview even if the content is larger than 1 line.

It only takes the height of single line and displays 1 line, and all the remaining lines appears to be marquee vertically which is seen when I drag it manually...

so what will be the issue?


change property of textview Input Type:textMultiline

You can use also this

textView1.setText(Html.fromHtml("Titleeee"));

here i found a list of text that fromHtml will convert

http://commonsware.com/blog/Android/2010/05/26/html-tags-supported-by-textview.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜