android 调出系统menu键

来源:互联网 发布:淘宝客如何设置佣金 编辑:程序博客网 时间:2024/05/20 06:52
Window window = getWindow();        try {            window.addFlags(WindowManager.LayoutParams.class.getField("FLAG_NEEDS_MENU_KEY").getInt(null));        }        catch (NoSuchFieldException e) {// Ignore since this field won't exist in most versions of Android        }        catch (IllegalAccessException e) {            Log.w("====", "Could not access FLAG_NEEDS_MENU_KEY in addLegacyOverflowButton()", e);        }
0 0
原创粉丝点击