Sunday, 18 August 2013

First VerticalViewPager page blank

First VerticalViewPager page blank

I have a problem that relates to Android's ViewPager. I am currently
attempting to implement a VerticalViewPager (though that is not relevant
to the problem as this same problem occurs with a normal ViewPager) with a
custom PagerAdapter that gets stuff from my database and inputs it onto
the screen.
The problem is that my first card appears to be blank until I slide it
over to the next page and come back. After that the content is there. I'm
not exactly sure what was going on so hopefully someone can shed some
light on this issue. I found a similar problem here: Why is the first view
in ViewPager appearing empty? and Activity using ViewPager, PagerAdapter
and AsyncTask causes a blank view but it seems as if nothing in there is
able to help me.

No comments:

Post a Comment