コード例 #1
0
ファイル: ListClinic.java プロジェクト: jabedhasan21/mPharma
 @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);
 }
コード例 #2
0
 @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;
 }
コード例 #3
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   _menu = menu;
   MenuInflater inflater = getSupportMenuInflater();
   inflater.inflate(R.menu.menu_solo_info, _menu);
   return true;
 }
コード例 #4
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   MenuInflater inflater = getSupportMenuInflater();
   inflater.inflate(R.menu.categories, menu);
   return true;
 }
コード例 #5
0
  private void resetearMenu() {
    marcador = null;

    _menu.clear();
    MenuInflater inflater = getSupportMenuInflater();
    inflater.inflate(R.menu.menu_solo_info, _menu);
  }
コード例 #6
0
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inf = getSupportMenuInflater();
    inf.inflate(R.menu.simple_map_menu, menu);

    return super.onCreateOptionsMenu(menu);
  }
コード例 #7
0
ファイル: RepositoryActivity.java プロジェクト: JoonyLi/gh4a
  @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);
  }
コード例 #8
0
 @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;
 }
コード例 #9
0
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = this.getSupportMenuInflater();
    inflater.inflate(R.menu.contact_selection, menu);

    return true;
  }
コード例 #10
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   MenuInflater inflater = getSupportMenuInflater();
   inflater.inflate(R.menu.menu, menu);
   this.menu = menu;
   return super.onCreateOptionsMenu(menu);
 }
コード例 #11
0
ファイル: WelcomeActivity.java プロジェクト: blmak/Gibberbot
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {

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

    return true;
  }
コード例 #12
0
ファイル: IndexFragment.java プロジェクト: hanjing5/Lampshade
  @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
ファイル: Explore.java プロジェクト: puria/liquidroid
  /* (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;
  }
コード例 #14
0
  @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);
  }
コード例 #15
0
  @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;
  }
コード例 #16
0
  @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;
  }
コード例 #18
0
 @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);
 }
コード例 #19
0
  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);
  }
コード例 #20
0
  @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;
  }
コード例 #21
0
 /** 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;
 }
コード例 #23
0
  @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;
 }
コード例 #25
0
 @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;
 }
コード例 #26
0
  @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;
  }
コード例 #27
0
  @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);
  }
コード例 #29
0
  @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
ファイル: MainActivity.java プロジェクト: pixbit/android
  @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;
  }