예제 #1
0
  /** Called when the menu is created. */
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.optionsmenu, menu);

    return true;
  }
예제 #2
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   // Inflate the menu; this adds items to the action bar if it is present.
   MenuInflater inflater = getMenuInflater();
   inflater.inflate(R.menu.main, menu);
   return true;
 }
예제 #3
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   Log.d(TAG, "Create menu options");
   MenuInflater inflater = getMenuInflater();
   inflater.inflate(R.menu.loader_menu, menu);
   menu.findItem(R.id.loader_menu_refresh_map_list).setVisible(mLoader < 0);
   return true;
 }
예제 #4
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   MenuInflater myMenuInflater = getMenuInflater();
   myMenuInflater.inflate(R.menu.menu, menu);
   return super.onCreateOptionsMenu(menu);
 }