Lines Matching full:menu
47 import android.view.Menu;
138 // sort order that can be changed through the menu can be sorted alphabetically
223 // State variables used to figure out menu options and also
263 * menu key, REORDER_LIST message is posted to the handler. this sorts the list
2005 public boolean onCreateOptionsMenu(Menu menu) {
2006 menu.add(0, SORT_ORDER_ALPHA, 1, R.string.sort_order_alpha)
2008 menu.add(0, SORT_ORDER_SIZE, 2, R.string.sort_order_size)
2014 public boolean onPrepareOptionsMenu(Menu menu) {
2016 menu.findItem(SORT_ORDER_ALPHA).setVisible(mSortOrder != SORT_ORDER_ALPHA);
2017 menu.findItem(SORT_ORDER_SIZE).setVisible(mSortOrder != SORT_ORDER_SIZE);