问题描述
我不知道我现在用的是正确的话这个UI功能,但我重视什么,我希望实现我的应用程序的快照。
I am not sure I am using the right words for this UI feature, but I have attached a snapshot of what I am looking to achieve in my app.
及其使用围棋的SMS,其中在编辑文本用户类型的联系人,用户选择后从完成一个接触降下来,接触插在编辑文本作为显示在所附的形象。编辑文本是仍然是开放,接受进一步的输入。
Its used by Go SMS, where a user types contacts in an edit text, after the user selects a contact from the completion drop down, the contact is inserted in the edit text as show in the attached image.The edit text is still open to accept further input.
有关我的应用程序,我想只要用户输入一个逗号做分组和插入,就像标签输入计算器的工作(但我相信我能处理的一个人。)我的问题是什么样的查看这还是我怎么修改一个EditText,以这样的表现?
For my app, I would like to do the grouping and insertion as soon as the user enters a comma, Just like the Tag input for StackOverflow works (But I believe I can handle that alone.) My problem is what kind of View is this or how do I modify an EditText to behave like this?
感谢。
推荐答案
从谷歌官方的芯片库(如Gmail中使用电子邮件,日历,邮件)位于https://android.googlesource.com/platform/frameworks/ex/
The official Chips library from Google (as used in Gmail, Email, Calendar, Messaging) is located at https://android.googlesource.com/platform/frameworks/ex/
这是在芯片/目录。
如何使用一个简单的例子可以在<一个发现href="https://$c$c.google.com/p/platform-features-talk-io-2013/source/browse/src/com/example/iotalk/ChipsActivity.java">https://$c$c.google.com/p/platform-features-talk-io-2013/source/browse/src/com/example/iotalk/ChipsActivity.java
A simple example of how to use it can be found at https://code.google.com/p/platform-features-talk-io-2013/source/browse/src/com/example/iotalk/ChipsActivity.java
这篇关于Android的AutoCompleteTextView带芯片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!