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
I am quite new to Android development (4 days and counting now...), so forgive me if this workaround is very pedestrian or inefficient, but it has worked OK for me (and a lot of people seem to be encountering this problem):
Since my ListView is populating objects, I added an 'expanded' variable which is set to true by the onItemClickListener. Inside my BaseAdapter I check if the object is expanded and set the bottomMargin/visibility accordingly. I guess it has the added benefit of preserving the state of the expansion when the fragment/activity is resumed as well, but obviously it comes at a bit of a performance cost.
@N00BFACE I solved the same way, and so I don't think the persistence of the expanded state should be a task of the code in that repository. For me, this issue can be closed.
Step to reproduce
I guess this is cause by View re-using. However, if we remove the code
We will encounter another set of problem
The text was updated successfully, but these errors were encountered: