splitwise / TokenAutoComplete

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

How can I listen for item click events on a Lenovo pop-up dialog? #447

Closed liboyan666 closed 1 year ago

liboyan666 commented 1 year ago

"When filling in the recipient, a pop-up dialog appears suggesting a list of people as you type letters. I want to listen for the item click event on this list to perform some actions. How can I do that?"

mgod commented 1 year ago

I don't think there's a simple way to do this, but the library is built on top of the normal android autocomplete system so a lot of the solutions for normal android autocomplete work. In this case, I think you can just use setOnItemClickListener, but I haven't done this myself. As a note here, item clicks are not the only way to complete an item in the list. If you want to perform some action when an item is completed, I would implement your own TokenListener as shown in the docs.

liboyan666 commented 1 year ago

thanks for the answer