Making a Custom Menu in Android -


I'm working on creating a game for Android, artwork with a friend Wants to do, as he made an image to use as a menu.

My question is that there is no menu item in OnCreateOptionsMenu () on menuewen () by pressing the menu button, and then close the menu with my SurfaceView class? Or just, how can I do my own menu that is activated by pressing the menu button?

You probably use the function and detects and what you want.

Your code should be something like this:

  Public Boolean override at @KeyDown (intccode, key event event) {if (keycode == KeyEvent.KEYCODE_MENU) {// Do your own menus come true here; } return false; }    

Comments

Popular posts from this blog

php - Creating canonical URLs with custom route-classes -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -

Mysql Local server hardware -