cgr
cgr

Reputation: 4636

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

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

Upvotes: 4

Views: 2045

Answers (1)

cgr
cgr

Reputation: 4636

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:

enter image description here

Upvotes: 2

Related Questions