On Sunday, December 21, 2014 6:15:44 AM UTC+3, Doug Gordon wrote:
>
> SOLVED! After tracing the execution through ViewPager and
> FragmentPagerAdapter and trying to explain the very strange behavior I was
> seeing, I eventually discovered that when I wrote my fragments extending
> Fragment and
SOLVED! After tracing the execution through ViewPager and
FragmentPagerAdapter and trying to explain the very strange behavior I was
seeing, I eventually discovered that when I wrote my fragments extending
Fragment and ListFragment a long time ago, I had added a getView() method
that was (inadv
Ok, so the items are there and the views are there.
What I would do at this point is check the attributes (data) of those views:
- Their positions and sizes
- Visibility
- Animation state
- Translation / scaling
- Scroll positions
Or I would try to debug into the view pager's onMeasure / onLayou
Kostya, I have done that and what I am seeing is the background of the
ViewPager, but not my fragments' views. I set a breakpoint so I could go
back into the ViewPager, and examining its data structure I find that not
only does its mItems array contain my instantiated fragments, but also the
mC
Have you tried debugging into ViewPager code?
To see if your fragments' views are actually there and how they're laid out?
Another thing I often use in cases like this -- is to set the background
color of various views to distinct noticeable colors, like pink, cyan, etc.
In this case, I'd try the
5 matches
Mail list logo