SystemUtils.forceShowOverflowMenu(this);
public static void forceShowOverflowMenu(Context c) {
try {
ViewConfiguration config = ViewConfiguration.get(c);
java.lang.reflect.Field menuKeyField = ViewConfiguration.class.getDeclaredField("sHasPermanentMenuKey");
if (menuKeyField != null) {
menuKeyField.setAccessible(true);
menuKeyField.setBoolean(config, false);
}
} catch (Exception e) {
e.printStackTrace();
}
}
阅读(1177) | 评论(0) | 转发(0) |