Android AutoCompleteTextView with chips

2020-01-29 03:52发布

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.

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.

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?

EditText with Grouped Values

Thanks.

7条回答
祖国的老花朵
2楼-- · 2020-01-29 04:58

Two more Chips libraries.

  • Android Chips. Unlike some other this one is updated to have visuals reflecting the newly released "Material Design" standard.

    enter image description here

  • Token Auto Complete. It is an Android Gmail style token auto-complete text field and filter.

    enter image description here
    enter image description here

查看更多
登录 后发表回答