Android: Play Animation with ViewPager/ListView
===

I have an animation that is set to a ListView by:

listView.setLayoutAnimation(LayoutAnimationController controller)

This happens in the body of instantiateItem(View collection, int position), which is in a class that is extending PagerAdapter.

I am unable to set mPager.setOffscreenPageLimit(0) because of the minimum limit of 1, so there is always at least one offscreen page.

The problem is that this offscreen page will not play the animation when I swipe to that page.

How can I make it so that my animation will play every single time, even when I am switching to a cached offscreen page?

Thanks to anyone who can help!