ABS with both Navigation Drawer and DropDown Menu - android

Does anybody know if you can use both NavigationDrawer (slideMenu, such as FourSquare) and DropDown Menu? I'm using ActionBar Sherlock, since I have to support versions from Android 2.3.
First one, NavigationDrawer is to navigate among activities. About DropDown Menu, I want to use it to change the content of some lists.
Thanks in advance.

Yes, you can. The NavigationDrawer and DropDown menu work independently of each other.
For the navigation drawer, you have to make your layouts use the drawerlayout and implement ActionBarDrawerToggle class. For the dropdown menu, you just have to add the dropdowns to your actionbar.
What you want is to change is parent of your app's theme to whatever it is plus .ForceOverflow. For example,
<style name="MyTheme" parent="#style/Theme.Sherlock.ForceOverflow">
Unfortunately, in the newer versions of ABS, the ForceOverflow option has been removed, so in order to use this option, you will have to download an ActionBarSherlock version <= 4.1.0.

Related

How to replace default hamburger icon with custom drawable (Used latest NavigationView, design support library, tool bar))

I have followed exact steps in the following tutorial for making navigation drawer using design support library. But i want to replace the default hamburger icon (using drawerToggle.syncState()). How can i do it?
https://github.com/codepath/android_guides/wiki/Fragment-Navigation-Drawer
Also I want to make Navigation drawer switch activities instead of fragments. For this, i have made a BaseActivity following above tutorial and extended all other activities from this BaseActivity. I am able to get the result but when a new activity is launched unable to preserve the highlighting of selected item in navigation drawer. Please suggest any solutions?

ContextMenu in Material Design

I want to make my app in Material Design, but one thing I noticed was that the ContextMenus are themed in Holo, as seen here: .
Is there a way to make the context menu Material Themed?
Maybe this post helps:
Styling the popup menu in Android 5.0
They try to do exactly the opposite there. Note that using the ActionBar and using the right application/activity theme should do the trick.
This however is for the ActionBar context menu. I think the longpress ListView context menu is being phased out. It might be possible to make a custom theme for it though:
Android: Theme ContextMenu item selection

Jfeinstein Sliding Menu over Activity

I use this library to implement slide menu in my app. It works that it push my activity content to left side. I want to Sliding Menu appear OVER my activity content. Is there any way to change appearing of this sliding menu?
Yes you can do it. Instead of that library you have to use Navigation Drawer.
For supporting from android 2.1 you have to use Support Library.
NavigationDrawer using only Android Support Library
https://developer.android.com/design/patterns/navigation-drawer.html
https://developer.android.com/training/implementing-navigation/nav-drawer.html
As you said, Jfeinstein Sliding Menu uses iOS style and push content to the left (with ActionBar)
The recommended way is using Android-styled component: Navigation Drawer. It appears over content and below ActionBar.
https://developer.android.com/training/implementing-navigation/nav-drawer.html
it's only your choise, but in my mind using android recommended way is prefer

ActionBar and ActionBar.Tab and Navigation Drawer android

I am using action bar with help of android-support-v7-appcompat and also using Navigation drawer over it.
In one of my fragment if I use ActionBar.Tabs then the tabs overlaps the navigation drawer and the drawer gets below the ActionBar tabs.
How can I make the action bar like in google play application or Google movie application.
The tabs should also go behind like the fragment. How can I do the same with android-support-v7-appcompat Libs
For Tab bar try ViewPagerIndicator http://viewpagerindicator.com/
This has a very good implementation for tab bar.
When we use default tab bar with actionbar, in landscape mode it will be merged into single row. So its better to use the above library.
I think you would be better off using a library like ViewPagerIndicator. The ActionBar is recognized as decor and is shown over top of the window, and the DrawerLayout is drawn as an object in the window.
Not sure if they're going to fix it in a future revision, but ViewPagerIndicator is pretty easy to set up and customize anyway.
Also, go to this question for better achievement getting-drawerlayout-to-slide-over-the-actionbar
Roman Nurik says that the Navigation Drawer should not be used with the Action Bar tabs.
The discussion is here https://plus.google.com/u/1/116515063230772720916/posts/8dWEkFcbTFX

Creating Android Facebook-like menu on bottom bar

I'm using Galaxy tab and it's got a bar on bottom that appears all the time.
FB app shows a new item there that used as a menu button.
How can I declare my menu to be there like FB?
Thanks!
I guess they are still using the old options menu. You can achieve that effect by setting the target sdk to max 10. I wouldn't recommend that as the menu button hides information and is not the current way to go (I'd use an ActionBar)
You should definately look at the ActionBar. In addition to the tab navigation that is available, you have an option for a split action bar for top and bottom. ActionBar is part of Honeycomb (3.x), but if you want to support older versions, there is the ActionBarSherlock library.

Categories

Resources