Chinaunix首页 | 论坛 | 博客
  • 博客访问: 235009
  • 博文数量: 54
  • 博客积分: 2656
  • 博客等级: 少校
  • 技术积分: 1020
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-19 21:06
文章分类

全部博文(54)

文章存档

2016年(3)

2014年(8)

2013年(4)

2012年(2)

2011年(29)

2010年(8)

我的朋友

分类: Android平台

2014-11-25 15:13:34

private void forceShowOverflowIcon(boolean isShow) {
try {
 ViewConfiguration config = ViewConfiguration.get(this);
 java.lang.reflect.Field menuKeyField = ViewConfiguration.class.getDeclaredField("sHasPermanentMenuKey");


 if (menuKeyField != null) {
   menuKeyField.setAccessible(isShow);
   menuKeyField.setBoolean(config, false);
 }
}
catch (Exception e) {
 // presumably, not relevant
}
}
阅读(1194) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~