0

我有 n 个我希望能够滚动到另一个网格视图(我不能只有 1 个网格视图,因为每个网格视图可能有不同的列尺寸)。我计划将代码中的每个 gridview 添加到 LinearLayout,但作为示例,这里是一个示例 xml 布局。

<LinearLayout>
  <GridView />
  <GridView />
</LinearLayout>

目前这只是将屏幕一分为二,分成 2 个网格视图,分别滚动。

我希望我可以创建一个包含 GridView 数组并允许连续滚动的自定义类。这是可能的还是有更好的方法来达到这种效果?

4

1 回答 1

0

I don't think having the screen split in several parts (GridViews) which independently scrolls is a very pleasant user experience, in my opinion.
Not to mention that if you will have a lot of GridViews, you'll need to put these GridViews in a ScrollView to allow the user scroll to the bottom of the page. And here is where the problems may begin.

Perhaps you should rethink the design. Did you consider using a ListView with a custom adapter instead?

于 2013-06-19T19:39:42.323 回答