splitwise / TokenAutoComplete

Gmail style MultiAutoCompleteTextView for Android
Apache License 2.0
1.3k stars 384 forks source link

space to create new labels without a list #352

Closed root-ansh closed 6 years ago

root-ansh commented 6 years ago

I read the Readme and understood that it uses a list of already present data which will be shown while the user is typing . What my requirement is an edittext, in which a user is writing something and on pressing 'spacebar', his text should become a new tag. And on pressing the back button, it should delete such tag (no need for an attached list). Something like this. (checkout the whitebox at bottom-right of the screen in desktop version of site)

How can i achieve it with this library?

mgod commented 6 years ago

I think you can just set the threshold value to something really large, but you might find it more useful to just add a text watched to your edit text that detects spaces and tokenizes the values yourself.