
到目前为止我已经尝试过
在values文件夹中:
<style name="AppBasetheme" parent="theme.AppCompat.light"> <item name="actionbarStyle">@style/MyActionbar</item></style><style name="MyActionbar" parent="@style/Widget.AppCompat.light.Actionbar.solID.Inverse"> <item name="androID:textcolor">@androID:color/white</item></style>
和值-14文件夹
<style name="AppBasetheme" parent="theme.AppCompat.light.DarkActionbar"> <item name="actionbarStyle">@style/MyActionbar</item></style><!-- Actionbar styles --><style name="MyActionbar" parent="@style/Widget.AppCompat.light.Actionbar.solID.Inverse"> <item name="androID:textcolor">@androID:color/white</item></style>
但Actionbar标题颜色没有变化.
解决方法 您可以使用colorPrimary属性指定Actionbar的背景颜色;类似以下内容:<style name="AppBasetheme" parent="theme.AppCompat.light"> <item name="colorPrimary">@androID:color/white</item> </style>
以上是为AppCompat创建的特殊标记;你会注意到androID:namespace被省略了.
总结以上是内存溢出为你收集整理的更改 *** 作栏标题颜色Theme.AppCompat.Light.DarkActionBar android全部内容,希望文章能够帮你解决更改 *** 作栏标题颜色Theme.AppCompat.Light.DarkActionBar android所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)