android actionBar右上角 menu 显示三个点
16lz
2022-05-26
在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 }
更多相关文章
- android截图代码
- H5调android 的方法修改UI无效
- 【android开发】之【android动态布局方法总结】
- 日积月累--android基础知识日记
- Android(安卓)读取安装的非系统应用程序
- 安卓添加全局字体tff
- android tabhost学习
- android:软件的安装和卸载源代码
- android Menu 菜单使用总结