use of android.view.MenuInflater in project cw-omnibus by commonsguy.
the class ActionModeHelper method onCreateActionMode.
@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
MenuInflater inflater = host.getMenuInflater();
inflater.inflate(R.menu.context, menu);
mode.setTitle(R.string.context_title);
return (true);
}
use of android.view.MenuInflater in project UltimateAndroid by cymcsg.
the class SnackbarRecyclerViewSampleActivity method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.snack_bar_recyclerview_sample, menu);
return true;
}
use of android.view.MenuInflater in project cw-advandroid by commonsguy.
the class ActionModeDemo method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
new MenuInflater(this).inflate(R.menu.option, menu);
EditText add = null;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
View v = menu.findItem(R.id.add).getActionView();
if (v != null) {
add = (EditText) v.findViewById(R.id.title);
}
}
if (add != null) {
add.setOnEditorActionListener(onSearch);
}
return (super.onCreateOptionsMenu(menu));
}
use of android.view.MenuInflater in project cw-advandroid by commonsguy.
the class HCMultiChoiceModeListener method onCreateActionMode.
@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
MenuInflater inflater = host.getMenuInflater();
inflater.inflate(R.menu.context, menu);
mode.setTitle(R.string.context_title);
mode.setSubtitle("(1)");
activeMode = mode;
return (true);
}
use of android.view.MenuInflater in project android by cSploit.
the class LoginCracker method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.login_cracker, menu);
return super.onCreateOptionsMenu(menu);
}
Aggregations