ExpandableLayout icon indicating copy to clipboard operation
ExpandableLayout copied to clipboard

ExpandableLinearLayout & ExpandableRelativeLayout height issue when recycling item in RecyclerView

Open Shusshu opened this issue 9 years ago • 5 comments

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?

Shusshu avatar Apr 12 '16 15:04 Shusshu

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

fsw0422 avatar Apr 26 '16 10:04 fsw0422

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

suntao2yl avatar Jun 16 '16 01:06 suntao2yl

@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);.

AAkira avatar Aug 19 '16 00:08 AAkira

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?

kyaw-san-oo avatar Oct 10 '17 04:10 kyaw-san-oo

How come this is not implemented in ExpandableRelativeLayout?

hshahdoost avatar Jan 20 '18 10:01 hshahdoost