Example #1
0
 @Override
 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
   super.onCreateOptionsMenu(menu, inflater);
   menu.removeItem(R.id.action_search);
   menu.removeItem(R.id.action_all);
   menu.removeItem(R.id.action_rank);
 }
Example #2
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setHasOptionsMenu(true);
   addPreferencesFromResource(R.xml.pref_setting);
 }