带水平滚动的 GridView [英] GridView with horizontal scroll

查看:19
本文介绍了带水平滚动的 GridView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有一个垂直滚动的 GridView,一切正常.但是现在我想改变我的布局并让 gridview 随着它变大而在其宽度而不是高度上增长,我迷路了.

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.

每次将项目添加到 gridview 时,我都尝试简单地更改列宽.但是即使正确添加了项目,也不会出现垂直滚动.有没有一种巧妙的方法来解决这个问题,还是我必须制作自己的网格视图?:(

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? :(

干杯,

推荐答案

但是现在我想改变我的布局并让 gridview 继续增长它的宽度而不是高度越来越大

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

我不相信 GridView 支持——抱歉!

I do not believe GridView supports that -- sorry!

这篇关于带水平滚动的 GridView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆