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:org.planetmono.dcuploader.ActivityGalleryChooser.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater mi = getMenuInflater();
    mi.inflate(R.menu.gallery_chooser, menu);

    return true;/*w  w  w  .  j a v  a  2 s.  c  o m*/
}

From source file:com.starwood.anglerslong.LicenseActivity.java

/*********************************************************
 * Creates the action bar menu/*ww  w .  j a  v a2  s. c o  m*/
 *********************************************************/
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.menu_license, menu);
    return super.onCreateOptionsMenu(menu);
}

From source file:ch.gianulli.flashcards.ListsFragment.java

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

From source file:net.reichholf.dreamdroid.fragment.TimerListFragment.java

@Override
public void createOptionsMenu(Menu menu, MenuInflater inflater) {
    checkMenuReload(menu, inflater);
    inflater.inflate(R.menu.timerlist, menu);
}

From source file:com.kircherelectronics.accelerationexplorer.activity.NoiseActivity.java

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

From source file:anakiou.com.picontrol.ui.fragments.InputsFragment.java

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

From source file:com.example.abrahamrequena.sunshine.ForecastFragment.java

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

}

From source file:net.networksaremadeofstring.rhybudd.DeviceList.java

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

From source file:com.example.android.sunshine.fragments.ForecastFragment.java

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

From source file:com.scooter1556.sms.android.fragment.AudioDirectoryFragment.java

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