Viral Patel
Viral Patel

Reputation: 33408

Android: Convert a normal menu to slider menu? (With minimal coding)

I have an app with a normal menu i.e. the common old menu that shows up at the bottom of the screen when the menu button is pressed. But it is a problem in some phones where there is no hard menu button.

I want to switch to slider menu with a menu icon on top. Is there an easy way to do this (I mean a way where code change would be minimum) retaining the existing functionality? Or will i have to go about coding the slider menu from scratch?

Any example code of a similar situation would really help.

Upvotes: 0

Views: 191

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006674

I have an app with a normal menu i.e. the common old menu that shows up at the bottom of the screen when the menu button is pressed

Normally, that "menu" will appear as the overflow on devices with an action bar that either:

  • do not have a MENU button, or
  • run Android 4.4+

But it is a problem in some phones where there is no hard menu button.

Make sure that your app has an action bar.

I want to switch to slider menu with a menu icon on top

The options menu/action-bar-with-overflow is unrelated to the "slider menu". They serve different roles. Please read the design guidelines for a navigation drawer (a.k.a., "slider menu").

Is there an easy way to do this (I mean a way where code change would be minimum) retaining the existing functionality?

No, because they are not related.

Upvotes: 1

Related Questions