Skip to content

Commit

Permalink
Merge pull request #1 from whilu/master
Browse files Browse the repository at this point in the history
hide the upback button
  • Loading branch information
JayFang1993 committed Mar 12, 2015
2 parents 5856b73 + b20bbe0 commit 8a9ef37
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -139,6 +139,8 @@ public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.activity_main, menu);
getActionBar().setDisplayShowHomeEnabled(false);
getActionBar().setHomeButtonEnabled(false);// 不可点击
getActionBar().setDisplayHomeAsUpEnabled(false);// 去掉默认的返回箭头
return super.onCreateOptionsMenu(menu);
}

Expand Down

0 comments on commit 8a9ef37

Please sign in to comment.