1. <small id='iNtYH'></small><noframes id='iNtYH'>

    <i id='iNtYH'><tr id='iNtYH'><dt id='iNtYH'><q id='iNtYH'><span id='iNtYH'><b id='iNtYH'><form id='iNtYH'><ins id='iNtYH'></ins><ul id='iNtYH'></ul><sub id='iNtYH'></sub></form><legend id='iNtYH'></legend><bdo id='iNtYH'><pre id='iNtYH'><center id='iNtYH'></center></pre></bdo></b><th id='iNtYH'></th></span></q></dt></tr></i><div id='iNtYH'><tfoot id='iNtYH'></tfoot><dl id='iNtYH'><fieldset id='iNtYH'></fieldset></dl></div>

    <tfoot id='iNtYH'></tfoot>

      <legend id='iNtYH'><style id='iNtYH'><dir id='iNtYH'><q id='iNtYH'></q></dir></style></legend>
      • <bdo id='iNtYH'></bdo><ul id='iNtYH'></ul>

      带有芯片的 Android AutoCompleteTextView

      Android AutoCompleteTextView with chips(带有芯片的 Android AutoCompleteTextView)

          <tbody id='H56T3'></tbody>
        <tfoot id='H56T3'></tfoot>

            <small id='H56T3'></small><noframes id='H56T3'>

                <bdo id='H56T3'></bdo><ul id='H56T3'></ul>
                <i id='H56T3'><tr id='H56T3'><dt id='H56T3'><q id='H56T3'><span id='H56T3'><b id='H56T3'><form id='H56T3'><ins id='H56T3'></ins><ul id='H56T3'></ul><sub id='H56T3'></sub></form><legend id='H56T3'></legend><bdo id='H56T3'><pre id='H56T3'><center id='H56T3'></center></pre></bdo></b><th id='H56T3'></th></span></q></dt></tr></i><div id='H56T3'><tfoot id='H56T3'></tfoot><dl id='H56T3'><fieldset id='H56T3'></fieldset></dl></div>
                <legend id='H56T3'><style id='H56T3'><dir id='H56T3'><q id='H56T3'></q></dir></style></legend>
                本文介绍了带有芯片的 Android AutoCompleteTextView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我不确定我是否为这个 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.

                Go 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.

                对于我的应用程序,我想在用户输入逗号后立即进行分组和插入,就像 StackOverflow 的标签输入一样(但我相信我可以单独处理.)我的问题是什么样的查看是这个还是我如何修改 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?

                谢谢.

                推荐答案

                Google 的官方 Chips 库(用于 Gmail、电子邮件、日历、消息)位于 https://android.googlesource.com/platform/frameworks/opt/chips/

                The official Chips library from Google (as used in Gmail, Email, Calendar, Messaging) is located at https://android.googlesource.com/platform/frameworks/opt/chips/

                如何使用它的简单示例可以在 https://code.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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How can I detect integer overflow on 32 bits int?(如何检测 32 位 int 上的整数溢出?)
                Local variables before return statements, does it matter?(return 语句之前的局部变量,这有关系吗?)
                How to convert Integer to int?(如何将整数转换为整数?)
                How do I create an int array with randomly shuffled numbers in a given range(如何在给定范围内创建一个随机打乱数字的 int 数组)
                Inconsistent behavior on java#39;s ==(java的行为不一致==)
                Why is Java able to store 0xff000000 as an int?(为什么 Java 能够将 0xff000000 存储为 int?)
                • <legend id='9DM7r'><style id='9DM7r'><dir id='9DM7r'><q id='9DM7r'></q></dir></style></legend>

                      <small id='9DM7r'></small><noframes id='9DM7r'>

                        <bdo id='9DM7r'></bdo><ul id='9DM7r'></ul>

                            <tbody id='9DM7r'></tbody>
                        1. <i id='9DM7r'><tr id='9DM7r'><dt id='9DM7r'><q id='9DM7r'><span id='9DM7r'><b id='9DM7r'><form id='9DM7r'><ins id='9DM7r'></ins><ul id='9DM7r'></ul><sub id='9DM7r'></sub></form><legend id='9DM7r'></legend><bdo id='9DM7r'><pre id='9DM7r'><center id='9DM7r'></center></pre></bdo></b><th id='9DM7r'></th></span></q></dt></tr></i><div id='9DM7r'><tfoot id='9DM7r'></tfoot><dl id='9DM7r'><fieldset id='9DM7r'></fieldset></dl></div>

                          <tfoot id='9DM7r'></tfoot>