GridView每行具有动态列数 [英] GridView with dynamic number of columns in each row
本文介绍了GridView每行具有动态列数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 GridView
的帮助下重新创建以下视图.
How can I recreate the following view with the help of a GridView
.
列表中的项目数是动态的.
The number of items in the list is dynamic.
推荐答案
我想这不是一个GridView,而是多个布局的组合.只需制作一个LinearLayout并根据内容决定,您要连续使用哪种布局即可.
I guess that this is not a single GridView but a combination of multiple Layouts. Just make a LinearLayout and decide according to the content, which layout you want to have in a row.
这篇关于GridView每行具有动态列数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文