Chips UI for custom data in Android. (OR) Customizing klinker41/android-chips library to handle custom data (other than EMAIL and CONTACTS)

一笑奈何 提交于 2019-12-23 15:13:23

问题


I want to implement android chips with material look as designed in material chips. The only library that has implemented them this way is https://github.com/klinker41/android-chips. But it handles only Email and Phone contacts. I have list of my own data that has to be searchable and should be shown in chips when selected as same way this library does.

Has anybody used https://github.com/klinker41/android-chips library to handle the data other than Email and Phone ? If so, any hints on how to tailor it to handle my data ? Any suggestions regarding this ?

EDIT :

Question in general is that how to implement Chips UI in Android to handle custom data ?.


回答1:


I implemented chips using https://github.com/splitwise/TokenAutoComplete. After enough research with available libraries, I felt this library is best for custom data.
[I will try to add code as soon as possible. I could add image also in the chip.]

This is how my chips looks:



来源:https://stackoverflow.com/questions/34130997/chips-ui-for-custom-data-in-android-or-customizing-klinker41-android-chips-li

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!