点击menu键,直接跳转的,不出来item

来源:互联网 发布:成都关键词优化机构 编辑:程序博客网 时间:2024/04/28 23:59
@Override
public boolean onPrepareOptionsMenu(Menu menu) {


Intent intent = new Intent(AppLockActivity.this, mySettings.class);
startActivity(intent);
// 如果返回false,此方法就把用户点击menu的动作给消费了,onCreateOptionsMenu方法将不会被调用
return false;


}
0 0