如何更改动作条的颜色的向上? [英] How do I change the color of actionbar's up arrow?

查看:140
本文介绍了如何更改动作条的颜色的向上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何修改我的动作条的向上箭头。我使用android系统中没有ABS或actionbarcompat操作栏。有没有办法改变的操作栏中的向上的颜色/图像箭头?

  

解决方案

答案由沃顿商学院的杰克在的如何自定义动作条上

 <样式名称=Theme.MyTheme父=机器人:Theme.Holo>
    <项目名称=机器人:homeAsUpIndicator> @可绘制/ my_up_indicator< /项目>
< /风格>
 

How do I change the actionbar's up arrow. I am using the action bar in android not ABS or actionbarcompat. Is there a way to change the color /image of the action bar's up arrow ?

解决方案

The answer is provided by Jake Wharton in How to customize the back button on ActionBar

<style name="Theme.MyTheme" parent="android:Theme.Holo">
    <item name="android:homeAsUpIndicator">@drawable/my_up_indicator</item>
</style>

这篇关于如何更改动作条的颜色的向上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆