Answers for "super.oncreateoptionsmenu(menu inflater)"

1

onCreateOptionsMenu for fragment

@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
    inflater.inflate(R.menu.menu_sample, menu);
    super.onCreateOptionsMenu(menu,inflater);
}
Posted by: Guest on May-12-2020

Browse Popular Code Answers by Language