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

ExpandableLinearLayout & ExpandableRelativeLayout height issue when recycling item in RecyclerView #71

Open
Shusshu opened this issue Apr 12, 2016 · 5 comments

Comments

@Shusshu
Copy link

Shusshu commented Apr 12, 2016

When scrolling a list with a lot of elements I expand one ExpandableLinearLayout then scroll again to another element where ExpandableLinearLayout is supposed to expand even more, but sadly it's reusing the same view and does not expand fully.

How can I force a new height calculation?

@fsw0422
Copy link

fsw0422 commented Apr 26, 2016

I am also having the same problem. the TextView inside cannot be seen 100%

@suntao2yl
Copy link

i'm having the same problem too. any good idea?

@AAkira
Copy link
Owner

AAkira commented Aug 19, 2016

@Shusshu @fsw0422 @suntao2yl

I'm sorry for the delay fixed this issue.
This problem is fixed in #87.

You have to set holder.expandableLayout.setInRecyclerView(true); and holder.setIsRecyclable(false); if it's used in recycler view.
But a recycler view isn't recycled if you set a holder.setIsRecyclable(false);.

@kyaw-san-oo
Copy link

According to #87, I set holder.expandableLayout.setInRecyclerView(true); in my recycler view adapter but the ExpandableLinearLayout cannot wrap the contents fully when expand. How can I fix please?

@hshahdoost
Copy link

How come this is not implemented in ExpandableRelativeLayout?

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

6 participants