You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@alextestsamsungedge Try using getAdapterPosition() to get the updated position instead of using the initial position provided in onBindViewHolder.
I have another problem though, if my header (Header A below) only has one item (Item 1 below), after removing Item 1 and call RemoveItemAt, Item 1 disappears but Header A will stay there, but the collapsing/expanding of Header A and B will no longer work (Tapping on Header B will try to expand/collapse Header A and nothing happens except the arrow will rotate 90 degrees). Any way to solve this? How to remove Header A when there are no more items under it?
Items order change after removal.
The text was updated successfully, but these errors were encountered: