Create a gist now

Instantly share code, notes, and snippets.

Force to use overflow menu
try {
// force to use overflow menu
ViewConfiguration config = ViewConfiguration.get(this);
Field menuKeyField = ViewConfiguration.class
if (menuKeyField != null) {
menuKeyField.setBoolean(config, false);
} catch (Exception ex) {
// Ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment