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

How to handle separator views #10

Closed
qmrk opened this issue Jul 7, 2013 · 3 comments
Closed

How to handle separator views #10

qmrk opened this issue Jul 7, 2013 · 3 comments

Comments

@qmrk
Copy link

qmrk commented Jul 7, 2013

I have a listview which contains different types of separator views. I can't seem to figure out, how to disable, that these items get added to the selection when long clicked on.

Also, some of the separator items are not supposed to be added to the multichoice selection, but still should be clickable, to allow a view change. How to go about this?

Any help is appreciated! Thanks.
Rob

@ManuelPeinado
Copy link
Owner

That's definitely not supported by the library. I'll see if I can think of
a good way to add it without complicating the API too much. In the mean
time, I recommend you just fork the lib and adapt it to your needs, the
code is pretty straightforward.
El 07/07/2013 20:46, "qmrk" notifications@github.com escribió:

I have a listview which contains different types of separator items. I
can't seem to figure out, how to disable, that these items get added when
long clicked on.

Also, some of the separator items are not supposed to be added to the
multichoice selection, but still should be clickable, to allow a view
change. How to go about this?

Any help is appreciated! Thanks.
Rob


Reply to this email directly or view it on GitHubhttps://github.com//issues/10
.

@qmrk
Copy link
Author

qmrk commented Jul 8, 2013

Ok, thanks for the quick reply! That's what i figured... Just wanted to make sure, before I start messing with your code ;-)

Thanks for this nice library, btw!

@ManuelPeinado
Copy link
Owner

I've added support for this in v2.2.4. Check the "non-checkable items" sample to see what you should do, it's basically a matter of overriding the new isItemCheckable() method in your adapter.

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