首页 > 系统 > Android > 正文

android 调出系统menu键

2019-11-09 15:15:33
字体:
来源:转载
供稿:网友
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); }
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表