0
我想定制sherlock动作栏(背景颜色,字体颜色等)。何处为操作栏添加自定义sherlock栏自定义主题?
我发现了一些有用的链接在这里堆栈溢出,但我不知道,在哪里把我的新主题XML配置文件,以及如何链接他们从AndroidManifest?
感谢您的任何帮助。
我想定制sherlock动作栏(背景颜色,字体颜色等)。何处为操作栏添加自定义sherlock栏自定义主题?
我发现了一些有用的链接在这里堆栈溢出,但我不知道,在哪里把我的新主题XML配置文件,以及如何链接他们从AndroidManifest?
感谢您的任何帮助。
你必须在风格上添加这样
<style name="Theme.MyApp.Default" parent="@style/Theme.Sherlock.Light">
<item name="actionBarStyle">@style/MyApp.SherlockActionBarStyle</item>
<item name="android:actionBarStyle">@style/MyApp.kActionBarStyle</item>
</style>
<style name="MyApp.ActionBarStyle" parent="@style/Widget.Sherlock.ActionBar">
<item name="android:background">#ff000000</item>
<item name="background">#ff000000</item>
<item name="android:textSize">@dimen/textsize</item>
<item name="textSize">@dimen/textsize</item>
<item name="android:textColor">@color/grey</item>
<item name="textColor">@color/grey</item>
</style>
谢谢你的回复,但我不知道我应该把文件?我有3个样式的目录(值,值-V11,值-V14),我想为全球的应用程序设置我的新风格。 – redrom
放入足够的值,它将适用于所有的android版本 –