I want to make a layout similar to this picture given below:
What I have tried so for is
- Included Sherlock library
- included Viewpage Indicator Library
- Created project using "Fixed Tabs + swipe navigation type"
- tested up to android 2.1 froyo to 4.4 kitkat without any crash
Now work to do
As you can see in the above image I want 3 action-bar tabs + Overview
tab should contain 4 other screens with certain views. they should change in on swipe event
And all other tabs should contain a single separate fragment in it.
Well I have done it. Yeahhhssss :P
Ohk here what i done
Here is my MainActivity extendind SherlockFragmentActivity
}
this will set my 3 tabs on the actionbar.
now the second proplem is showing multiple fragments in first tabs and showing the page indicator. I have achieved this using the view pager and view page indicator.
here is my overview.xml
and here is my Overview.java file which inflates the above xml file like this
}
and here is the output
also make sure you have inluded the libraries