I'm having some trouble adding a Fragment
apart from the Fragments
I have linked to each of my Tabs
. In other words, I want to be able to swipe between Fragments
with ViewPager
, but I don't want the first Fragment
to be one of the Tabs
.
My Adpater
for ViewPager
and my Tabs
is basically that of the example Google gives on the Developers website.
I've tried going ahead and adding the Fragment
I want separate from the other in the TabHost
as a tab and then setting the TabWidget
visibility to GONE at position 0 and although that removes the TabWidget
, when I swipe over to any other position the tab for position 0 will still be there. This method is a bit clunky too and I'd rather implement this in a nicer manner.
I'd share some code, but most of it is posted on the Developers website, but if I need to I will.