标签:android io java ar sp cti on c r
mActionBar.setHomeButtonEnabled(true); mActionBar.setDisplayHomeAsUpEnabled(true);
两者缺一不可。
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: onBackPressed(); break; } return true; }
标签:android io java ar sp cti on c r
原文地址:http://blog.csdn.net/zhpforever/article/details/39314781