Android的列的GridView,可变宽度一样GooglePlus应用 [英] Android Column GridView, variable width like GooglePlus App

查看:108
本文介绍了Android的列的GridView,可变宽度一样GooglePlus应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,最喜欢的,我们都用/看到了谷歌加应用程序。

So like most we have all used/seen the Google Plus App.

我感到兴趣的是,他们已经开发了ColumnGridView,这不仅可变宽度,但高度可变的,似乎是基于内容会很乐意展示的CardView。

What interests me is the ColumnGridView they have developed, which not only does variable width, but variable height, seems that based on content will happily show the best space for the CardView.

一些可能的解决方案来复制这一点,但只有真正寻找最好的其中一个当然是谷歌的执行情况。

Few possible solutions to replicate this, but only really looking for the best one which is of course the google implementation.

  1. 是的,这可以达到与TableView中 - 但是这将是不佳的编程,不设窗户回收
  2. 在我自己定制的实现,基于一个ListView / GridView控件 - 不是不可能的,但大量的工作
  3. 在理想的情况下使用谷歌其中一个我假设的是同一个为谷歌现在/加,因为他们执行基于一卡通式的项目以同样的方式。

所以,有没有人遇到过吗?

So has anyone come across this?

任何教程,范例,源我可以用先从救我一些头部的方式?

Any tutorials, examples, source I can use start with to save me some head way?

甚至一些来自谷歌的家伙方向它是如何计算的大小?

Maybe even some direction from the Google guys at how it is calculating the sizing?

推荐答案

StaggeredGridView 当前存在于框架/ EX /部件/ AOSP的夹这似乎是什么的Google+使用(或它的变型中,有可能的)。

StaggeredGridView currently exist in the frameworks/ex/widgets/ folder of AOSP which appears to be what Google+ is using (or a variant of it, likely).

这将是在最新的支持库版本(R11),直到它在 b54e36f2 回复凯瑟琳·宽并移动到实验回购。

It was going to be in the latest support library release (r11) until it was reverted by Katherine Kuan in b54e36f2 and moved to the experimental repo.

这篇关于Android的列的GridView,可变宽度一样GooglePlus应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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