Android的 - 动态地创建一组单词像标签UI [英] Android - dynamically create a collection of words with ui like tags

查看:151
本文介绍了Android的 - 动态地创建一组单词像标签UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请在影像中看到的链接..我在创建用户配置文件的工作。

Please see the image in the link.. I am working on creating a user profile..

在轮廓我想在由图像中的链接所描述的方式来显示一个用户的业余爱好。这些爱好会动态地从后端用户配置文件进行填充,所以我希望每个爱好风格得到像这样的以及其他类似的后显示被添加的。可能吗?请告知。

In the profile I want to display a user's hobbies in the manner described by the image in the link. These hobbies will be populated dynamically in a user profile from backend, so I want each hobby gets style like this and gets added one after other like shown. Is it possible? Please advise..

我正在使用的RelativeLayout作为自定义列表项目之一。是在一个片段内动态创建我的列表中。

I am using a RelativeLayout as one of the custom list item. My list is created on the fly inside a fragment.

RelativeLayout hobbiesLayout= new RelativeLayout(getActivity().getApplicationContext());
List<Item> items = new ArrayList<Item>();
items.add(new HobbiesItem(inflater, hobbiesLayout));

在创建这个列表项目,我想填充所有我从后台得到的爱好并显示如图所示的形象。我认为这将textviews进行定制添加到布局,但不能肯定。

While creating this list item, I want to populate all the hobbies I get from backend and display it as shown in the image. I think it will be custom textviews added to a layout but not sure.

推荐答案

完全匹配您的要求。请参见

Exactly matches your requirement. See this

一些更多的资源:

芯片EDITTEXT图书馆

Gmail的现场一样

令牌EDITTEXT场

希望它帮助。

这篇关于Android的 - 动态地创建一组单词像标签UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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