Action如何换掉返回箭头

============问题描述============


如题 通过设置 mActionBar.setHomeAsUpIndicator(this.getResources().getDrawable(R.drawable.acl)); 无效  求解为什么?

============解决方案1============



getSupportActionBar().setCustomView(LayoutInflater.from(this).inflate(R.layout.title, null));

getSupportActionBar().setDisplayShowCustomEnabled(true);

getSupportActionBar().setDisplayShowHomeEnabled(false);

getSupportActionBar().setDisplayShowTitleEnabled(false);

title是自定义的布局文件,你可以在其中修改箭头。
posted @ 2014-11-08 13:46  android开发视频教程  阅读(225)  评论(0编辑  收藏  举报
我要啦免费统计