I have a listView with about 20 items (dynamic items). I want to animate these items first they show up to user. something like Google+ cards. There are some points that I want to achieve:
- items animate only when the user starts to see them.
- items animate only once. (not every time user sees them)
- on fast scrolling items don't mess up to each other.
- animations start with a delay according to position of items.
Up to now I have tried:
- LayoutAnimationController (this method didn't meet the first requirement)
- convertView.startAnimation (this method didn't meet the second requirement)
- convertView.startAnimation with a flag that if the item at position has been animated before or not (this method didn't work for first items in listView because, the getView method will be called twice for first items in listView. (I don't know why! layout_height and layout_width are both match_parent))
I searched a lot but couldn't come along with a solution.
By the way, I prefer not to use external libraries. I have seen this before.
Thanks.