I want to know whether its possible to create a following UI in android.
I am having a navigation drawer
. It calls fragment
A as the main UI. In fragment
A i want to use viewpager
to display different tabs
.
I want to know whether its possible to create a following UI in android.
I am having a navigation drawer
. It calls fragment
A as the main UI. In fragment
A i want to use viewpager
to display different tabs
.
Yes, it is possible. Just implement the Sliding Menu Library, and when you click a Menu Item from the Sliding Menu, start an FragmentSlidingActivity(Fragment Activity extends SlidingMenu's FragmentActivity to be able to slide) which has Tabs with Fragments inside.
And if you are looking for different back stack for each tab under Tab Host (like it is used to be with TabActivity which is deprecated ), you can take a look on my example project on GitHub.
Here is the link to the Sliding Menu Library.
See as suggested: https://github.com/JakeWharton/Android-ViewPagerIndicator
or this for a quick tutorial: http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html