• Post Reply Bookmark Topic Watch Topic
  • New Topic

Android Fragment not showing inside Viewpager  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an android application using swipe tabs to navigate between fragments. I have 2 fragments defined in xml file and 1 main activity. Whenever I run my application I'm getting the tabs to show up properly with the correct names "Administration", "Scan", "About"... but the page is blank. When I step through my debugger to check the return value of onCreateView (in my FragmentPagerAdapter code below) it appears to be returning correct value... I can't figure out why I keep getting a blank screen. Can someone please help?

Here is my activity_main.xml

Here is my MainActivity.java

Here is my FragmentPagerAdapter w/ static fragment class
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!