如何调整Android ActionBar向上按钮与屏幕左侧的距离
1个回答
展开全部
ar.setDisplayShowHomeEnabled(true);
bar.setDisplayShowCustomEnabled(true);
bar.setDisplayHomeAsUpEnabled(true);
Resources r = getResources();
Drawable backDrawable = r.getDrawable(R.drawable.arrow_home);
bar.setLogo(backDrawable);
LayoutInflater inflator = (LayoutInflater) this
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View v = inflator.inflate(R.layout.my_booking_actionbar, null);
ActionBar.LayoutParams layout = new ActionBar.LayoutPar
bar.setDisplayShowCustomEnabled(true);
bar.setDisplayHomeAsUpEnabled(true);
Resources r = getResources();
Drawable backDrawable = r.getDrawable(R.drawable.arrow_home);
bar.setLogo(backDrawable);
LayoutInflater inflator = (LayoutInflater) this
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View v = inflator.inflate(R.layout.my_booking_actionbar, null);
ActionBar.LayoutParams layout = new ActionBar.LayoutPar
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询