I am trying to implement sliding tabs inside actionBar tabs just like flipboard. So one of the main tabs will have three tabs. Sub-tabs will scroll first and once all tabs get scrolled, then main tab comes into focus and will start scrolling.
I am attaching screenshot of flipBoard UI
Have anyone done this? Please help.
It seems already managed by Android: you just need to create a ViewPager in the outer activity and for every fragment hosted by the ViewPager, you create a ViewPager. This is my test project:
MainActivity.java
activity_main.xml
InnerFragment.java (one of the fragment hosted inside the activity viewpager)
and its layout fragment_inner.xml
PageFragment.java - one of the fragment hosted by the InnerFragment viewpager
and its layout fragment_page.xml
that's it! Try and let me know.
Edit: Forgot to say that the first component is not an ActionBar.