如何创建像Foursquare的兴趣选择屏幕一个gridview? [英] How to create a gridview like Foursquare interest selection screen?
问题描述
我创建要求用户为选择多个利益的应用程序。
我想创建一个屏幕类似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 :)
(降序* S)
这篇关于如何创建像Foursquare的兴趣选择屏幕一个gridview?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!