Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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