在谷歌Play应用中,ViewGroup中是如何显示的应用程序列表顶部实施?应用程序、列表、Play、ViewGroup

由网友(Escape(脱逃))分享简介:在谷歌Play应用程序presents在GridView样的方式不同类别的顶部列表(截图)。我是pretty的肯定,它不是一个标准的GridView控件,当我一路滚动到底部,因为它显示了一个屏幕范围的加载项目,这是不可能的标准GridView的,以我的知识。The Google Play application pr...

在谷歌Play应用程序presents在GridView样的方式不同类别的顶部列表(截图)。我是pretty的肯定,它不是一个标准的GridView控件,当我一路滚动到底部,因为它显示了一个屏幕范围的加载项目,这是不可能的标准GridView的,以我的知识。

The Google Play application presents the top lists of different categories in a GridView-like way (screenshot). I'm pretty sure that it's not a standard GridView, since when I scroll all the way to the bottom, it shows a screen-wide "Loading" item, which is not possible with standard GridViews to my knowledge.

我能找到code本的ViewGroup地方?如果不是这将是实现这样一个ViewGroup中的最佳方式是什么?我在想怎样处理这个与ListView的,但它会需要一个相当混乱适配器,把多个列表项在单行,根据屏幕宽度可用。

Can I find the code for this ViewGroup somewhere? If not what would be the best way to implement such a ViewGroup? I was thinking about handling this with ListView, but it'd require a quite messy adapter that puts multiple list-items in a single row, according to the screen-width available.

推荐答案

要回答我的问题:

我拆开了谷歌Play应用,发现他们使用的是简单的ListView在这里,有一个BucketListAdapter。该适配器presents在GridView样的方式列表元素,它们分裂的列。这样,他们也可以使用列表页脚和头。

I disassembled the Google Play app and found that they're using simple ListView here, with a BucketListAdapter. This adapter presents the list-elements in a GridView-like way, splitting them to columns. This way they could also use list footers and headers.

我滚我自己的实现了这一点,如果任何人的兴趣,也可以在这里找到:https://github.com/rzsombor/bucket-list-adapter.它仍在进行中的东西但是。

I've rolled my own implementation of this, if anyone's interested, it can be found here: https://github.com/rzsombor/bucket-list-adapter. It's still working in progress stuff however.

阅读全文

相关推荐

最新文章