android - Change ActionBarCompat title color but not other texts color -


I am using the last release of Support Library (V21) in which content topics (under the theme. AppCompat's name) And I want to try to achieve this by using the TextColor Primary (as shown) in my custom theme to keep the ActionBoard title in white.

  & lt; Style name = "appbashtheme" parent = "@ style / theme.AppCompat.Light" & gt; & Lt; Item name = "color primary" & gt; @color / orange & lt; / Item & gt; & Lt; Item name = "color primary diary" & gt; @color / orange_dirk & lt; / Item & gt; & Lt; Item name = "color clock" & gt; @color / white & lt; / Item & gt; & Lt ;! - Set this feature text color - & gt; & Lt; Item name = "android: textColorPrimary" & gt; @color / white & lt; / Item & gt; & Lt; / Style & gt;  

With this I got the title of a white actionbar but all other text (text view, editing) was also white ...

Is there a way to change only the ActionBar title color with the recently released features, or is it the only way to use a custom style for the action bar, such as in the case of Holo?

To change the color of the text in the action bar only, @ style / theme. App Compat.Lite Use the dark actionbar .


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -