
<style name="themeSelector" parent="androID:theme.light"> <item name="androID:windowTitleBackgroundStyle">@style/WindowTitleBackground</item> <item name="androID:textAppearance">@style/TitleTextcolor</item></style><style name="WindowTitleBackground"> <item name="androID:background">@drawable/waterblue</item> </style><style name="TitleTextcolor"> <item name="androID:textcolor">@color/white</item></style>
使用此背景图像已分配,但文本颜色不会更改.
在清单中我使用这样的.
<application androID:name="com.example" androID:allowBackup="true" androID:icon="@drawable/logo" androID:label="@string/app_name" androID:theme="@style/themeSelector">解决方法 这对我有用.
<resources xmlns:androID="http://schemas.androID.com/apk/res/androID"><style name="themeSelector" parent="@androID:style/theme.Holo.light"> <item name="androID:actionbarStyle">@style/mytheme.Actionbar</item> </style><style name="mytheme.Actionbar" parent="@androID:style/Widget.Holo.light.Actionbar"> <item name="androID:background">@drawable/lblue</item> <item name="androID:TitleTextStyle">@style/mytheme.Actionbar.Text</item> <item name="androID:height">@dimen/app_head_height</item></style><style name="mytheme.Actionbar.Text" parent="@androID:style/TextAppearance"> <item name="androID:textcolor">@color/white</item> <item name="androID:textSize">@dimen/app_head</item></style>总结
以上是内存溢出为你收集整理的android – 如何设置标题栏的文字颜色?全部内容,希望文章能够帮你解决android – 如何设置标题栏的文字颜色?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)