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