gpt4 book ai didi

android - 如何在默认主题 Theme.Holo.Light 中更改 homeAsUpIndicator 的图像

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:44:01 24 4
gpt4 key购买 nike

在我的安卓应用中,

我使用的是默认主题 Theme.Holo.Light。

现在我想更改默认使用的“<”符号:

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

通过将其更改为

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

但这里的标志保持原样,它不会改变图像。我附上了 actionBar 的屏幕截图。任何帮助将不胜感激。

enter image description here

最佳答案

将它们放入您的默认 Activity 主题中。

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

关于android - 如何在默认主题 Theme.Holo.Light 中更改 homeAsUpIndicator 的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18417512/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com