如何创建像Foursquare的兴趣选择屏幕一个gridview? [英] How to create a gridview like Foursquare interest selection screen?

查看:184
本文介绍了如何创建像Foursquare的兴趣选择屏幕一个gridview?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建要求用户为选择多个利益的应用程序。
我想创建一个屏幕类似Foursquare的兴趣选择类似于标签云,其中多个按钮可以选择重新present用户的利益。

I am creating an app which requires the user to select multiple interests. I am trying to create a screen similar to the Foursquare interest selection similar to a Tag cloud where multiple buttons can be selected to represent the users interests.

我曾尝试创建一个GridView,但我不能够实现按钮结束了到下一行的效果。

I have tried creating a gridview but I'm not able to achieve the effect of buttons wrapping up to the next line.

有没有这可以通过一个GridView可以实现的方法吗?有哪些处理这种UI库?

Is there a way this can be achieved via a gridview? Is there a library which does this kind of UI?

推荐答案

您正在寻找的FlowLayout 比重=CENTER_HORIZONTAL。有几种实现可用,其中很多是在GitHub库项目。带你挑:)

You're looking for FlowLayout with gravity="center_horizontal". There are several implementations available, a lot of them as library projects on GitHub. Take you pick :)

ApmeM / Android系统的FlowLayout

blazsolar / FlowLayout中

蒜苗/ FlowLayout中

(降序* S)

这篇关于如何创建像Foursquare的兴趣选择屏幕一个gridview?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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