MaterialChipsInput
MaterialChipsInput copied to clipboard
Add chip manually when enter is pressed on keyboard
How can i add a chip manually when i enter text which is not in the list.
I guess you need to add a text watcher on edit-text of chip-input whenever user enter space just add the text as a form of chip chips_input.addChip(ClassExtendingChipInterface(inputFormChipInput))
but with chips_input.addChip() replaces chips which are already there.
It doesn't unit there is some chip validator added e.g. chips_input.setChipValidator { _, _ -> false } This result in adding duplicated.