Closed VeneetReddy closed 8 years ago
I'd guess this is theoretically possible, but it would involved you grabbing the click event and manually calculating view positions based on the text layout to figure out if a view was hit. I note you've seen #250 which has my best guess on this.
@VeneetReddy @mgod have you got any idea regarding this problem?
@akashk1992 I would use the Select
style where one click selects a token and a second click deletes it, along with implementing a selected layout for my tokens. As I noted, #250 has my best suggestion for implementing this, and I would personally just not use this library and roll my own layout and completion if you need this.
Making this possible in general is not something I consider in-scope for this library.
My custom view of token is like this
How do I delete the token when the
token_delete_button
is clicked?I tried adding a on
OnClickListener
to the button in thegetViewForObject
. It is not getting invoked.Any suggestions?