What\'s happening: The first two ViewPager pages loaded nicely (ViewPager automatically loads +-1 from current page). When you scroll past these the next pa
Found my problem. In the parent of the parent of my view someone subclassed LinearLayout
and overrode requestLayout()
without calling super.requestLayout()
.
This broke the refreshing of my view hierarchy and prevented onMeasure and onLayout from being called on my ViewPager. Without measuring and laying out the pages they showed up as blank in ViewPager.
Hope this helps someone else out someday. It sure took me forever to figure out.
PRO TIP: android-sdk/tools/hierarchyviewer is incredible. Thank you Android team. Everyone should run it at least once, it can be invaluable in debugging and designing anything UI.