splitwise / TokenAutoComplete

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

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

Closed liboyan666 closed 10 months ago

liboyan666 commented 10 months 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 10 months 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 10 months ago

thanks for the answer