Example usage for android.view MenuInflater inflate

List of usage examples for android.view MenuInflater inflate

Introduction

In this page you can find the example usage for android.view MenuInflater inflate.

Prototype

public void inflate(@MenuRes int menuRes, Menu menu) 

Source Link

Document

Inflate a menu hierarchy from the specified XML resource.

Usage

From source file:com.concentricsky.android.khanacademy.app.SignInActivity.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.sign_in, menu);
    return true;// w w  w  .  j a v a 2s .c  o m
}

From source file:info.xuluan.podcast.SearchActivity.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.search_activity, menu);
    return true;/*w  w w .  jav  a 2 s.c  om*/
}

From source file:com.rubika.aotalk.Market.java

public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.layout.marketmenu, menu);

    return true;//w  w  w  . ja  v  a 2  s  .  c  om
}

From source file:com.adkdevelopment.earthquakesurvival.ui.RecentFragment.java

@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
    super.onCreateOptionsMenu(menu, inflater);
    inflater.inflate(R.menu.menu_recent, menu);
}

From source file:fr.mdk.kisspush.KISSPush.java

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

From source file:com.adkdevelopment.earthquakesurvival.ui.DetailFragment.java

@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
    super.onCreateOptionsMenu(menu, inflater);
    inflater.inflate(R.menu.menu_detailed, menu);

    MenuItem menuItem = menu.findItem(R.id.menu_item_share);
    mShareActionProvider = (ShareActionProvider) MenuItemCompat.getActionProvider(menuItem);
    setShareIntent();/*w  w w. j a  v  a 2  s.c o  m*/
}

From source file:com.example.vendrisample.HelloEffects.java

License:asdf

@Override
public boolean onCreateOptionsMenu(final Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.options_menu, menu);
    return true;/*from  www.  j a va2  s. com*/
}

From source file:ca.ualberta.cmput301.t03.user.ViewProfileFragment.java

/**
 * {@inheritDoc}//from  www.  j a  v a 2s.c o m
 */
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
    super.onCreateOptionsMenu(menu, inflater);
    if (PrimaryUser.getInstance().equals(mUserToView)) {
        inflater.inflate(R.menu.fragment_view_profile, menu);
    }
}

From source file:at.general.solutions.android.ical.activity.ICalSynchronizeActivity.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.config, menu);
    return true;/*from  ww w . j a  va 2s.  com*/
}

From source file:com.tobbetu.en4s.navigationDrawer.ListActivity.java

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