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

Always Expanded ? #66

Closed
stanbar opened this issue Sep 13, 2015 · 5 comments
Closed

Always Expanded ? #66

stanbar opened this issue Sep 13, 2015 · 5 comments
Labels
Milestone

Comments

@stanbar
Copy link

stanbar commented Sep 13, 2015

Hello. Is it possible to set parent to be always expanded and prevent for collapsing ?

@paul-turner
Copy link
Contributor

In the upcoming 2.0.0 release (currently on master) you should be able to override shouldItemViewClickToggleExpansion to return false, and then set your own click listener that calls expandView/collapseView only on parent views you want to expand/collapse

@paul-turner
Copy link
Contributor

Edited the above to reflect recent changes, let me know if that doesn't work for you. You can check out the snapshot while we work on releasing 2.0.0

@paul-turner paul-turner added this to the 2.0.0 milestone Sep 16, 2015
@rinlv
Copy link

rinlv commented Oct 28, 2015

Hi Paul,
I'm using version 2.0.3 but the method shouldItemViewClickToggleExpansion() has been deprecated. What is the method replaced it?
Thanks.

@paul-turner
Copy link
Contributor

Hi @rinlv, shouldItemViewClickToggleExpansion should still be available in 2.0.3:
https://github.com/bignerdranch/expandable-recycler-view/blob/master/expandablerecyclerview/src/main/java/com/bignerdranch/expandablerecyclerview/ViewHolder/ParentViewHolder.java#L140

Are you not finding it in your project?

@rinlv
Copy link

rinlv commented Oct 29, 2015

Oh, my mistake, thanks you very much. It's mean, i have override method shouldItemViewClickToggleExpansion on my ParentViewHolder class

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

No branches or pull requests

3 participants