在onCreate添加以上代码

   try {            ViewConfiguration config = ViewConfiguration.get(this);            Field menuKeyField = ViewConfiguration.class.getDeclaredField("sHasPermanentMenuKey");            if(menuKeyField != null) {                menuKeyField.setAccessible(true);                menuKeyField.setBoolean(config, false);            }        } catch (Exception ex) {            // Ignore        }


更多相关文章

  1. android截图代码
  2. H5调android 的方法修改UI无效
  3. 【android开发】之【android动态布局方法总结】
  4. 日积月累--android基础知识日记
  5. Android(安卓)读取安装的非系统应用程序
  6. 安卓添加全局字体tff
  7. android tabhost学习
  8. android:软件的安装和卸载源代码
  9. android Menu 菜单使用总结

随机推荐

  1. Android FragmentManager之beginTransact
  2. Android # 源码下载相关
  3. Android Http RequestCache缓存策略
  4. android (19)
  5. Fragments: The Solution to All of Andr
  6. Android7.0中文文档(API)-- Filter
  7. Android Studio矢量图Vector Drawable绘
  8. Android(安卓)ViewStub控件使用
  9. android 禁止横切屏的代码
  10. android代码格式化方法小结