如何设置标题颜色ActionBarSherlock?
我应该使用哪些主题属性?
我正在尝试自定义我的sherlock操作栏,但我在style.xml中编码的任何内容都无法识别.
在我的清单文件中:
android:theme="@style/Theme.Sherlock"
Run Code Online (Sandbox Code Playgroud)
我的style.xml:
<resources>
<style name="Theme.MyAppTheme" parent="Theme.Sherlock">
<item name="android:actionBarStyle">@style/Theme.MyAppTheme.ActionBar</item>
</style>
<style name="Theme.MyAppTheme.ActionBar" parent="Widget.Sherlock.ActionBar">
<item name="android:background">#222222</item>
<item name="android:height">64dip</item>
<item name="android:titleTextStyle">@style/Theme.MyAppTheme.ActionBar.TitleTextStyle</item>
</style>
<style name="Theme.MyAppTheme.ActionBar.TitleTextStyle" parent="TextAppearance.Sherlock.Widget.ActionBar.Title">
<item name="android:textColor">#fff</item>
<item name="android:textStyle">bold</item>
<item name="android:textSize">32sp</item>
</style>
Run Code Online (Sandbox Code Playgroud)
我用这种方式调用我的操作栏:
public class MainActivity extends SherlockActivity {
com.actionbarsherlock.app.ActionBar actionbar;
...
actionbar = getSupportActionBar();
... }
Run Code Online (Sandbox Code Playgroud)
显示操作栏没有问题,但同样没有显示在style.xml中编码的任何自定义,有人可以帮助我吗?感恩.