【发布时间】:2015-10-05 05:14:56
【问题描述】:
我是 android 新手如何更改我的应用名称文本颜色和字体大小,我的默认文本颜色是黑色我想将其更改为白色并增加我的字体大小请任何人帮助我
style.xml
我的默认文本颜色是黑色,我想将其更改为白色
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<item name="android:actionBarStyle">@style/MyActionBarTheme</item>
<item name="android:actionBarTabTextStyle">@style/ActionBarTabText</item>
<item name="android:titleTextStyle">@style/MyActionBarTitleText</item>
<item name="android:actionBarTabStyle">@style/tabStyle</item>
<item name="android:actionBarDivider">@null</item>
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
<style name="MyActionBarTheme" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">#029C7A</item>
</style>
<style name="ActionBarTabText" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:textColor">#CFCFC4</item>
<item name="android:gravity">center</item>
</style>
<style name="MyActionBarTitleText" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title">
<item name="android:textColor">#FFFFFF</item>
</style>
<style name="tabStyle" parent="@android:style/Widget.Holo.Light.ActionBar.TabView">
<item name="android:tabStripEnabled">false</item>
</style>
</resources>
【问题讨论】:
-
您好,欢迎您。到目前为止,您尝试过什么?
-
这个我试过了,没用
-
我想改变我的标题文字颜色
标签: android