問題描述
我有一個水平線性布局,其中包含動態(tài)生成的文本視圖,我遇到的問題是如果添加太多文本視圖會被壓縮(見下圖).我將如何包裝線性布局以便在下一行打印文本視圖?
I have a horizontal linear layout that contains textviews generated dynamically, the problem I'm experiencing is that the textviews are squeezed (see image below) if too many of them are added. How would I go about wrapping the linearlayout so that the textviews are printed on the next line?
推薦答案
LinearLayout 對此無能為力.相反,您將制作自己的布局,如本 http:///nishantvnair.wordpress.com/2010/09/28/flowlayout-in-android/ 或采用與本 Android - LinearLayout Horizo??ntal with wrapping children
LinearLayout cant help with this. Instead you will have make your own Layout as mentioned in this http://nishantvnair.wordpress.com/2010/09/28/flowlayout-in-android/ or incorporate the same approach as of this Android - LinearLayout Horizontal with wrapping children
這篇關(guān)于Android 水平線性布局 - 包裝元素的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!