瀑布流 RecycleView 的 StaggeredGridLayoutManager?


疑惑?

最近在github查看项目时候,发现很多过去的项目用到StaggeredGridView,或者 重写StaggeredGridView,我有点疑惑,这个效果,如果用RecycleView 中的 StaggeredGridLayoutManager同样可以实现,为什么好多大牛用StaggeredGridView呢?

查开源项目

于是查到StaggeredGridView作者的此项目,详情见链接如下:

StaggeredGridView–github

看到这句话,就明白了:

Notice - Deprecated - 09-2015

This library has been deprecated. We will no longer be shipping any updates or approving community pull requests for this project.

While the code will remain for anyone who wishes to use it, we suggest you prefer using Google's own RecyclerView with their StaggeredGridLayoutManager. We are doing the same internally at Etsy.

Thanks to everyone who used the library and submitted code or issues to improve it.

原来,这个开源项目在2015年9年作者打算弃用了,作者不再更新了,但仍然能够使用。

原来如此

Google发布了Android5.0 SDK,随之android L的部分预览功能也发布了正式版本,Android5.0 v7扩展包带来了RecyclerView。
因为我是先了解到RecyclerView,后来发现了StaggeredGridView 。还以为StaggeredGridView 是个新的控件呢。

结论

以后想实现GridView效果就用RecycleView with StaggeredGridLayoutManager了,就这么愉快地决定了。
发现RecycleView 实现很强大,有木有?
不过,RecycleView 不支持Loader,实在是遗憾!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值