use of android.view.MenuInflater in project jmonkeyengine by jMonkeyEngine.
the class MainActivity method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu_items, menu);
return true;
}
use of android.view.MenuInflater in project jmonkeyengine by jMonkeyEngine.
the class TestActivity method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.test_menu_items, menu);
return true;
}
use of android.view.MenuInflater in project Talon-for-Twitter by klinker24.
the class ListsActivity method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.list_activity, menu);
return super.onCreateOptionsMenu(menu);
}
use of android.view.MenuInflater in project Talon-for-Twitter by klinker24.
the class SearchPager method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.search_activity, menu);
// Get the SearchView and set the searchable configuration
SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
searchView = (SearchView) menu.findItem(R.id.menu_search).getActionView();
// Assumes current activity is the searchable activity
searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
searchView.setIconifiedByDefault(true);
int searchImgId = getResources().getIdentifier("android:id/search_button", null, null);
ImageView view = (ImageView) searchView.findViewById(searchImgId);
view.setImageResource(settings.theme == AppSettings.THEME_LIGHT ? R.drawable.ic_action_search_light : R.drawable.ic_action_search_dark);
return true;
}
use of android.view.MenuInflater in project Talon-for-Twitter by klinker24.
the class PhotoViewerActivity method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.photo_viewer, menu);
return super.onCreateOptionsMenu(menu);
}
Aggregations