Android - Change Actionbar Title Text Color
You could find how to customize ActionBar
here. I recommend to use ToolBar
and Theme.AppCompat
instead - example.
Using SpannableString
we can set Text Color of Actionbar title
SpannableString s = new SpannableString(title);
s.setSpan(new ForegroundColorSpan(Color.GREEN), 0, title.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
getSupportActionBar().setTitle(s);
<style name="AppTheme" parent="android:style/Theme.Holo.Light">
<style name="AppTheme.TextView" parent="android:Widget.TextView">
You missed a symbol "@" here?
<style name="MyTheme" parent="@android:style/Theme.Holo.Light">
also
<style name="AppTheme.TextView" parent="@android:Widget.TextView">