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

Highlight selected item #6

Open
fmeneuhe opened this issue Dec 29, 2022 · 1 comment
Open

Highlight selected item #6

fmeneuhe opened this issue Dec 29, 2022 · 1 comment
Labels
question Further information is requested

Comments

@fmeneuhe
Copy link

Hi,
thanks a lot for this useful library.
Is possible to highlight a selected item? select a single choice item.
Thanks

@AmrDeveloper
Copy link
Owner

Hello @fmeneuhe,

Thank you for your review,

Yes it is possible, in TreeNode class there is an attribute that tells you if it is selected or not, also if it is expanded or not

So in the view holder, you can the background color if it selected and another color if it not selected you can choose any color and also change text colour, icons ...etc

Thanks
Amr Hesham

@AmrDeveloper AmrDeveloper added the question Further information is requested label Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants