Android toolbar menu.

when I press the hardware button on an android phone in my codename app, an empty menu is shown at the bottom of the app. Where can I set what should happen when the Android hardware option button is pressed?

+3


source to share


1 answer


When you add Command

to a toolbar specifically for a side menu or overflow, it should populate that menu. However, it shouldn't do anything unless you added a command to indicate a problem.

When you use the standard API, for example addMaterialCommandToSideMenu

, it will automatically create the menu by seeing this screenshot from the kitchen sink when you press the menu button on an Android 6 (OPO) device



Android device screenshot on menu button press

0


source







All Articles