• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Sometimes RecyclerView won´t communicate with ViewHolder

JonasJWW

Newbie
In my Application there is a RecyclerViewer with items that are expandable. Only one item can be expanded at a time. If there is another expanded item when expanding another item it gets collapsed.

The problem is I get some very weird behavior. My code seems to work like it should but sometimes the item won´t get expanded even though
Code:
lytContent.setVisibility(View.VISIBLE);
gets called. (lytContent is a LinearLayout with the content that gets expanded and collapsed). Furthermore when there are 6 items or more the code still gets called but the the Layout will never be set to visible. (means It wont expand)

To show you that behavior I have recorded my screen while in debugging to show you that the code is being called. Here is the Video: https://www.youtube.com/edit?o=U&video_id=c1kS2gzRZW0

I have no Idea where this behavior comes from. I assume it´s a problem with RecyclerView but I can´t seem to find a solution. I tried a lot of things but this bug is driving me crazy. Maybe someone of you can help.
 
Your video is unavailable, please check and post correct link.
It's difficult to advice something without code. Could you please give a link on the project or create some demo project which illustrates the problem. I will try to help.
 
Last edited:
Back
Top Bottom