Question

I made an application for my Samsung device. Samsung phones generally have a menu button on the bottom side of the phone which is a problem for those devices who do not. I tried my app out on a Nexus, but since it did not have the physical menu button, I couldn't open the menu.

Now I want to make another option to to open the menu in my app. I though a slide out menu would be nice. I want to use the same menu but another way to open it. I want to be able to open it from the side of the screen by swiping to the right, and from the menu button.

P.S. Normally there is a titlebar on top of the screen in an app with a menu button/option on it to. But I hide my titlebar (in my AndroidManifest), so that's the issue why I need another solution..

Était-ce utile?

La solution

Use Navigation Drawers for slide out menu. You can use Navigation for two menus, one from left other from right using different listview.

If you want to design a custom slide out menu using navigation drawer here is a tutorial.

http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top