Próbuję dostosować mój pasek działań sherlock, ale nic, co mogę zakodować w moim style.xml jest rozpoznawany.Stylizacja ActionBar Sherlock
W moim pliku manifestu:
android:theme="@style/Theme.Sherlock"
Moja 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>
Dzwonię mój actionbar ten sposób:
public class MainActivity extends SherlockActivity {
com.actionbarsherlock.app.ActionBar actionbar;
...
actionbar = getSupportActionBar();
... }
istnieje nie ma problemu z wyświetlaniem ac pasek stanu, ale to samo nie pokazuje żadnych dostosowań zakodowanych w pliku style.xml, czy ktoś może mi pomóc? Wdzięczny.
robie coś podobnego tutaj !!! http://stackoverflow.com/questions/19623805/actionbarsherlock-stacked-action-bar-styling-issue – toobsco42