use of android.view.MenuInflater in project Carbon by ZieIony.
the class BottomBar method setMenu.
public void setMenu(int resId) {
Menu menu = new MenuBuilder(new CarbonContextWrapper(getContext()));
MenuInflater inflater = new MenuInflater(getContext());
inflater.inflate(resId, menu);
setMenu(menu);
}
use of android.view.MenuInflater in project remusic by aa112901.
the class SelectActivity method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
final MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.down, menu);
MenuItem down = menu.findItem(R.id.down);
down.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
@Override
public boolean onMenuItemClick(MenuItem item) {
Intent intent = new Intent(SelectActivity.this, DownActivity.class);
startActivity(intent);
return false;
}
});
return true;
}
use of android.view.MenuInflater in project remusic by aa112901.
the class RankPlaylistActivity method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater menuInflater = getMenuInflater();
menuInflater.inflate(R.menu.playlit_menu, menu);
return super.onCreateOptionsMenu(menu);
}
use of android.view.MenuInflater in project NewPipe by TeamNewPipe.
the class DownloadActivity method onCreateOptionsMenu.
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.download_menu, menu);
return true;
}
use of android.view.MenuInflater in project NewPipe by TeamNewPipe.
the class MainActivity method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.main_menu, menu);
return true;
}
Aggregations