示例#1
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   // Inflate the menu; this adds items to the action bar if it is present.
   MenuInflater inflater = getSupportMenuInflater();
   inflater.inflate(R.menu.mpharma_menu, menu);
   return super.onCreateOptionsMenu(menu);
 }
 @Override
 public boolean onCreateOptionsMenu(com.actionbarsherlock.view.Menu menu) {
   // Inflate the menu; this adds items to the action bar if it is present.
   MenuInflater inflater = getSupportMenuInflater();
   inflater.inflate(com.dp.familyorganaizer.R.menu.main, menu);
   return true;
 }
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   _menu = menu;
   MenuInflater inflater = getSupportMenuInflater();
   inflater.inflate(R.menu.menu_solo_info, _menu);
   return true;
 }
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   MenuInflater inflater = getSupportMenuInflater();
   inflater.inflate(R.menu.categories, menu);
   return true;
 }
  private void resetearMenu() {
    marcador = null;

    _menu.clear();
    MenuInflater inflater = getSupportMenuInflater();
    inflater.inflate(R.menu.menu_solo_info, _menu);
  }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inf = getSupportMenuInflater();
    inf.inflate(R.menu.simple_map_menu, menu);

    return super.onCreateOptionsMenu(menu);
  }
示例#7
0
  @Override
  public boolean onPrepareOptionsMenu(Menu menu) {
    menu.clear();
    MenuInflater inflater = getSupportMenuInflater();
    inflater.inflate(R.menu.repo_menu, menu);

    if (Gh4Application.THEME != R.style.LightTheme) {
      menu.getItem(0).setIcon(R.drawable.navigation_refresh_dark);
    }

    MenuItem watchAction = menu.getItem(1);
    if (isAuthorized()) {
      if (!isFinishLoadingWatching) {
        watchAction.setActionView(R.layout.ab_loading);
        watchAction.expandActionView();
      } else {
        if (isWatching) {
          watchAction.setTitle(R.string.repo_unwatch_action);
        } else {
          watchAction.setTitle(R.string.repo_watch_action);
        }
      }
    } else {
      menu.removeItem(R.id.watch);
    }

    return super.onPrepareOptionsMenu(menu);
  }
 @Override
 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
   mode.setTitle("Class Info");
   MenuInflater inflater = parentAct.getSupportMenuInflater();
   inflater.inflate(R.menu.schedule_action_mode, menu);
   return true;
 }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = this.getSupportMenuInflater();
    inflater.inflate(R.menu.contact_selection, menu);

    return true;
  }
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   MenuInflater inflater = getSupportMenuInflater();
   inflater.inflate(R.menu.menu, menu);
   this.menu = menu;
   return super.onCreateOptionsMenu(menu);
 }
示例#11
0
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {

    MenuInflater inflater = getSupportMenuInflater();
    inflater.inflate(R.menu.main_list_menu, menu);

    return true;
  }
示例#12
0
  @Override
  public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
    inflater.inflate(R.menu.tropes_fragment_menu, menu);
    inflater.inflate(R.menu.index_fragment_menu, menu);

    MenuItem shareItem = menu.findItem(R.id.share_article);
    shareProvider = (ShareActionProvider) shareItem.getActionProvider();
  }
示例#13
0
  /* (non-Javadoc)
   * @see android.app.Activity#onPrepareOptionsMenu(android.view.Menu)
   */
  @Override
  public boolean onPrepareOptionsMenu(Menu menu) {
    menu.clear();

    MenuInflater inflater = getSupportMenuInflater();
    inflater.inflate(R.menu.refresh, menu);
    return true;
  }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    // TODO Auto-generated method stub

    MenuInflater menuInflater = new MenuInflater(this);
    menuInflater.inflate(R.menu.evaluacion_tabs_menu, menu);

    return super.onCreateOptionsMenu(menu);
  }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getSupportMenuInflater();
    inflater.inflate(R.menu.outline_menu, menu);

    synchronizerMenuItem = menu.findItem(R.id.menu_sync);

    return true;
  }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getSupportMenuInflater();

    if (positionOftaskToEdit != -1) inflater.inflate(R.menu.edittaskoptionsmenu, menu);
    else inflater.inflate(R.menu.createtaksoptionmenu, menu);

    return super.onCreateOptionsMenu(menu);
  }
示例#17
0
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    // TODO Auto-generated method stub

    MenuInflater inflater = getSupportMenuInflater();
    inflater.inflate(R.menu.option, menu);

    return true;
  }
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   MenuInflater inflater = getSupportMenuInflater();
   inflater.inflate(R.menu.photo_menu, menu);
   this.menu = menu;
   // for when 1st item of view pager is favorite mode
   FirstFav();
   return super.onCreateOptionsMenu(menu);
 }
  public boolean onCreateOptionsMenu(com.actionbarsherlock.view.Menu menu) {

    //	menu.add("Get_Egrid")

    //	.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);

    MenuInflater inflater = getSupportMenuInflater();
    inflater.inflate(R.menu.fltreportsmenu, menu);
    return super.onCreateOptionsMenu(menu);
  }
  @Override
  public boolean onCreateActionMode(ActionMode mode, Menu menu) {
    MenuInflater inflater = getSherlockActivity().getSupportMenuInflater();
    inflater.inflate(R.menu.conversation_list_batch, menu);

    mode.setTitle(R.string.conversation_fragment_cab__batch_selection_mode);
    mode.setSubtitle(null);

    return true;
  }
 /** Create menu from XML */
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   /* Note: on Android 3.0+ with an action bar this method
    * is called while the view is created. This can happen
    * any time after onCreate.
    */
   MenuInflater inflater = getSupportMenuInflater();
   inflater.inflate(R.menu.media_library, menu);
   return super.onCreateOptionsMenu(menu);
 }
示例#22
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   MenuInflater inflater = getSupportMenuInflater();
   inflater.inflate(R.menu.activity_main, menu);
   // android.util.Log.d("CHAN", ""+menu.findItem(R.id.menu_reply));
   // android.util.Log.d("CHAN", ""+getHomeFragment());
   menu.findItem(R.id.menu_reply).setEnabled(!getHomeFragment().isBoardsPage());
   menu.findItem(R.id.menu_refresh).setEnabled(!getHomeFragment().isBoardsPage());
   menu.findItem(R.id.menu_close).setEnabled(!getHomeFragment().isBoardsPage());
   return true;
 }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getSupportMenuInflater();
    inflater.inflate(R.menu.showinfo_menu, menu);

    MenuItem shareItem = menu.findItem(R.id.menu_share);
    ShareActionProvider shareActionProvider = (ShareActionProvider) shareItem.getActionProvider();
    shareActionProvider.setShareIntent(mShareIntentBuilder.getIntent());

    return true;
  }
示例#24
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   MenuInflater inflater = getSupportMenuInflater();
   if (helpVariant.equals(HelpVariant.distribution)) {
     inflater.inflate(R.menu.distribution, menu);
   } else {
     inflater.inflate(R.menu.categories, menu);
   }
   super.onCreateOptionsMenu(menu);
   return true;
 }
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   MenuInflater inflater = getSupportMenuInflater();
   inflater.inflate(R.menu.basic_menu, menu);
   refreshMenuItem = menu.findItem(R.id.menu_refresh);
   if (shouldAnimateRefreshButton) {
     shouldAnimateRefreshButton = false;
     startAnimatingRefreshButton(refreshMenuItem);
   }
   return true;
 }
  @Override
  public boolean onPrepareOptionsMenu(Menu menu) {
    Log.w("ConversationListActivity", "onPrepareOptionsMenu...");
    MenuInflater inflater = this.getSupportMenuInflater();
    menu.clear();

    if (this.masterSecret == null) inflater.inflate(R.menu.text_secure_locked, menu);
    else inflater.inflate(R.menu.text_secure_normal, menu);

    super.onPrepareOptionsMenu(menu);
    return true;
  }
  @Override
  public void onPrepareOptionsMenu(Menu menu) {
    MenuInflater inflater = this.getSherlockActivity().getSupportMenuInflater();

    if (this.masterSecret != null) {
      inflater.inflate(R.menu.conversation_list, menu);
      initializeSearch((SearchView) menu.findItem(R.id.menu_search).getActionView());
    } else {
      inflater.inflate(R.menu.conversation_list_empty, menu);
    }

    super.onPrepareOptionsMenu(menu);
  }
示例#28
0
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getSupportMenuInflater();
    inflater.inflate(R.menu.main, menu);

    // Associate searchable configuration with the SearchView
    SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
    SearchView searchView = (SearchView) menu.findItem(R.id.search).getActionView();

    searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));

    return super.onCreateOptionsMenu(menu);
  }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {

    mainMenu = menu;

    subMenu1 = menu.addSubMenu("Options");
    MenuInflater inflater = getSupportMenuInflater();
    inflater.inflate(R.menu.main, subMenu1);

    MenuItem subMenu1Item = subMenu1.getItem();
    subMenu1Item.setIcon(R.drawable.abs__ic_menu_moreoverflow_normal_holo_dark);
    subMenu1Item.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);

    return super.onCreateOptionsMenu(menu);
  }
示例#30
0
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);
    MenuInflater inflater = getSupportMenuInflater();

    inflater.inflate(R.layout.activity_menu, menu);

    // Get the SearchView and set the searchable configuration
    SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
    mSearchView = (SearchView) menu.findItem(R.id.menu_search).getActionView();
    mSearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
    mSearchView.setOnQueryTextListener(this);

    return true;
  }