【问题标题】:Title bar background color change in android studio in API Leve 11+ [duplicate]API Level 11+中android studio中的标题栏背景颜色更改[重复]
【发布时间】:2015-12-25 06:07:10
【问题描述】:

我已尝试更改 style.xml 以更改应用程序主题,如下所示:

<resources>

<!-- Base application theme. -->
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
    <!-- Customize your theme here. -->

</style>

<style name="AppTheme" parent="AppBaseTheme" >
    <item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
<style name="MyActionBar" parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
    <item name="android:background">@color/primary_color</item>
</style>

给我一​​个好的解决方案。

提前致谢

【问题讨论】:

标签: android android-studio


【解决方案1】:

试试这样的;我希望这是您想要的并且对您有所帮助:

 <style name="AppTheme" parent="Theme.AppCompat.Light">

    <item name="colorPrimary">#009000</item>
</style>

【讨论】:

  • 那么请点赞@SubhashKhimani =)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-09-10
  • 2010-11-19
  • 2019-08-10
  • 2015-01-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多