如何在默认主题Theme.Holo.Light中更改homeAsUpIndicator的图像 [英] How to change image of homeAsUpIndicator in default theme Theme.Holo.Light

查看:62
本文介绍了如何在默认主题Theme.Holo.Light中更改homeAsUpIndicator的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的android应用程序中,

In my android application,

我正在使用默认主题Theme.Holo.Light.

I am using default theme Theme.Holo.Light.

现在我要更改<"使用此符号的默认符号:

Now I want to change the "<" sign which is default using this :

 <item name="homeAsUpIndicator">@android:drawable/ic_ab_back_holo_light</item>

通过将其更改为

 <item name="homeAsUpIndicator">@drawable/ic_launcher</item>

但是这里的标志仍然保持不变,它不会改变图像.我附加了actionBar的屏幕截图.任何帮助将不胜感激.

But here sign remains as it is,It doesn't change image.I am attaching screen shot of actionBar. Any help will be appreciated.

推荐答案

将它们放入默认的活动主题中.

Put these in your default Activitytheme.

<item name="android:homeAsUpIndicator">@drawable/ic_launcher</item>

这篇关于如何在默认主题Theme.Holo.Light中更改homeAsUpIndicator的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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