Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

De-selecting item #15

Open
snc001 opened this issue Apr 6, 2020 · 2 comments
Open

De-selecting item #15

snc001 opened this issue Apr 6, 2020 · 2 comments

Comments

@snc001
Copy link

snc001 commented Apr 6, 2020

Not an issue but is there an example from this library to de-select an item?

@nisrulz
Copy link
Owner

nisrulz commented Apr 6, 2020

Like? Can you explain what you are trying to do? The library allows to set an onclick listener, i.e you decide to toggle selection/non selection states of your item.

@snc001
Copy link
Author

snc001 commented Apr 7, 2020

I've set the addOnItemTouchListener in the activity like the example suggests.
I then proceed to select for example 'Item A' so it is now highlighted with a white font colour.
Then I switch selection to select 'Item B' and now Item B font should be in white and 'Item A' font be back to black.

The library allows to set an onclick listener, i.e you decide to toggle selection/non selection states of your item.

How do you achieve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants