Tuesday 15 April 2014

android - How can I create a menu? -


I want to make a menu What's my problem? I think that is true but it does not work. I do not want to use boolean.

  onCreateOptionsMenu (menu) {menu.add (1, 1, 1, "setting"). SetIcon (android.R.drawable.ic_menu_manage); } Selected items from item (switch) {switch (ITAT. ITMID)} {case 1: intent level = new intent (activity_man.This, activity_man 2. class); StartActivity (move); break; }}}}  

you true in , I want to show the menu "Do not forget to call the code via the> Optional menu Super.

  @ Override Creative Options menu on public boolean (menu menu) {super.onCreateOptionsMenu (menu); Menu.add (1, 1, 1, "setting"). SetIcon (android.R.drawable.ic_menu_manage); Back true; }  

No comments:

Post a Comment