I have a sliding drawer menu in an activity, which has an actionbar with some tabs on it.
I'd like to get the sliding drawer to slide over the tabs , not below them.
This is what it looks like right now...
Any ideas on how this could be done?
Note: I understand that I might be breaking some conventions and UI patterns here, and if it does not work at all, I'll look at alternatives. But I'd like to get this working first.
EDIT: See the below screen shot of the Google Play Music app that does exactly what I need. See @CommonsWare's answer below where he does agree that I might be breaking convention. But then given the Play Music app, it may not be altogether that rare either.
I had the same problem, but the only solution I found was to use tabs inside the inner fragment (not fragmentActivity). I don't know if it was the best solution, the only problem i had was styling this tabs, for the rest, it works perfectly
This can be done WITHOUT a Third party library. Check out Google's Sliding Tabs samples
Also, check out this awesome link: http://manishkpr.webheavens.com/android-sliding-tabs-example/ Worked like a charm for me. :)
I have use tabs inside fragment of drawer. I solve this problem adding
in
onDrawerClosed()
andgetActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
inonDrawerOpend()
method.I hope this will help you.
Do any of the following:
Switch away from action bar tabs, perhaps to
ViewPager
and a tabbed indicator (PagerTabStrip
,TabPageIndicator
from ViewPageIndicator)See if an existing third-party drawer implementation has not yet updated to the new UI standards
Fork
DrawerLayout
and modify it to suitRoll your own navigation drawer from scratch
Correct.
you can use below libraries to get navigation model similar to Google play music app.
I have created a project Navigation Drawer with Tab Strip Example at github, have a look at it.
Below is the screenshot of it.
Check also this library http://www.androidviews.net/2013/04/pager-sliding-tabstrip/ The guy did a great job. You can use it with a navigation drawer and it works perfectly.