Code example for ListFragment

Methods: onCreateOptionsMenu

0
        actionModeController.vote(position, action);
    } 
 
    @Override 
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
        super.onCreateOptionsMenu(menu, inflater);
        menuController.onCreateOptionsMenu(menu, inflater);
    } 
 
    @Override 
    public void onPrepareOptionsMenu(Menu menu) {
        super.onPrepareOptionsMenu(menu);
        menuController.onPrepareOptionsMenu(menu);
    } 
 
    @Override 
    public boolean onOptionsItemSelected(MenuItem item) {
        return menuController.onOptionsItemSelected(item)
                || super.onOptionsItemSelected(item);
    }