I have the following style for my the ActionBar in my project
<style name="Theme.MyTheme" parent="Theme.Sherlock.Light">
<item name="actionBarStyle">@style/Widget.MyTheme.ActionBar</item>
<item name="android:actionBarStyle">@style/Widget.MyTheme.ActionBar</item>
<item name="homeAsUpIndicator">@drawable/icon_back</item>
<item name="android:homeAsUpIndicator">@drawable/icon_back</item>
</style>
<style name="Widget.MyTheme.ActionBar" parent="Widget.Sherlock.ActionBar">
<item name="android:background">#0099CC</item>
<item name="android:height">?android:attr/actionBarSize</item>
<item name="background">#0099CC</item>
<item name="android:titleTextStyle">@style/Theme.ActionBar.TitleTextStyle</item>
<item name="titleTextStyle">@style/Theme.ActionBar.TitleTextStyle</item>
<item name="android:displayOptions">useLogo|showTitle|homeAsUp</item>
<item name="displayOptions">useLogo|showTitle|homeAsUp</item>
</style>
<style name="Theme.ActionBar.TitleTextStyle" parent="TextAppearance.Sherlock.Widget.ActionBar.Title">
<item name="android:textColor">@color/white</item>
<item name="android:padding">10dp</item>
</style>
Now the text in the title bar is 0dp aligned to the left. The TextColor attribute works fine but the padding seems to be ignored. As a result, the title of the Activity is stuck to the left hand of the screen that is not very pleasing to look at. How can i add padding to the text ?
Kind Regards,