GridView with horizontal scroll

倖福魔咒の 提交于 2019-12-17 14:52:52

问题


I currently have a GridView scrolling vertically, and everything works fine. But now that I want to change my layout and have the gridview grow on its width instead of height as it grows bigger I am lost.

I have tried to simply change the column width each time an item is added to the gridview. But no vertical scroll appears, even though the items are added correctly. Is there a neat way to fix this, or must I make my own gridview? :(

Cheers,


回答1:


But now that I want to change my layout and have the gridview grow on its width instead of height as it grows bigger

I do not believe GridView supports that -- sorry!




回答2:


you can't achieve that even if you nest your Gridview inside a ScrollView. use a Gallery control instead of Gridview Control =),



来源:https://stackoverflow.com/questions/2997818/gridview-with-horizontal-scroll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!