How would I go about animating collapsing and hiding certain items in a ListView?
public class Post {
public String title;
public boolean isVisible;
}
Currently, I'm setting the posts' isVisible flag to false, calling the adapter's notifyDataSetChanged(), and setting each View's visibility to match the posts' isVisible flag in the getView(int position, View convertView, ViewGroup parent).
For example, if I had the Posts:
A
B
C
D
E
and I wanted to hide B and C, how would I animate D scrolling up to A and hiding B and C?
0 comments:
Post a Comment