Android的水平LinearLayout中 - 总结要素 [英] Android Horizontal LinearLayout - Wrap Elements
问题描述
我有一个包含textviews动态生成的水平线性布局,我遇到的问题是,textviews被挤压(见下图),如果有太多人加入。我怎么会去包裹的LinearLayout,使得textviews印在下一行?
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.word$p$pss.com/2010/09/28/flowlayout-in-android/ 或将同样的方法作为本<一href="http://stackoverflow.com/questions/2961777/android-linearlayout-horizontal-with-wrapping-children">Android - 的LinearLayout水平,带包装的孩子
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
这篇关于Android的水平LinearLayout中 - 总结要素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!