Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to change the text color of action bar sherlock
    primarykey
    data
    text
    <p>I know there are very few questions already posted on this thing. I filtered almost every post, but no luck and I am not getting the result which I have to get. First I tried <strong>code snippet#1</strong>, everything worked fine as in the image1. But now I must change the actionbar background to light and dull color, so did it, the result is activity's title and items' titles are in white color which are barely legible. So, decided to change the text color, but didn't get how to change it with my present code in the styles.xml. If someone could help me in changing the text color with present <strong>code(snippet#1)</strong> itself, that would be very great. As I didn't get how to modify the present code, I Followed <a href="https://groups.google.com/forum/?fromgroups=#!topic/actionbarsherlock/srQAd4R8ckQ" rel="nofollow noreferrer">this</a> and so now my code is <strong>code snippet#2</strong>, now my action bar completely goes weird making the home icon and app title disappear and displays only the item that is towards right like the <strong>image 2</strong>. Can someone please help me resolve this issue?</p> <p><strong>code snippet#1</strong></p> <pre><code>&lt;style name="MyTheme" parent="Theme.Sherlock"&gt; &lt;item name="actionBarStyle"&gt;@style/MyActionBar&lt;/item&gt; &lt;item name="android:actionBarStyle"&gt;@style/MyActionBar&lt;/item&gt; &lt;item name="android:windowBackground"&gt;@color/white&lt;/item&gt; &lt;/style&gt; &lt;style name="MyActionBar" parent="Widget.Sherlock.ActionBar"&gt; &lt;item name="background"&gt;@drawable/action_bar_background&lt;/item&gt; &lt;item name="android:background"&gt;@drawable/action_bar_background&lt;/item&gt; &lt;/style&gt; </code></pre> <p><strong>code snippet#2</strong></p> <pre><code>&lt;style name="MyTheme" parent="Theme.Sherlock.Light"&gt; &lt;item name="actionBarStyle"&gt;@style/CustomActionBar&lt;/item&gt; &lt;/style&gt; &lt;style name="CustomActionBar" parent="android:style/Widget.Holo.Light.ActionBar"&gt; &lt;item name="android:background"&gt;@drawable/action_bar_background&lt;/item&gt; &lt;item name="titleTextStyle"&gt;@style/ActionBarTitle&lt;/item&gt; &lt;/style&gt; &lt;style name="ActionBarTitle" parent="@android:style/TextAppearance.Medium"&gt; &lt;item name="android:textColor"&gt;#000000&lt;/item&gt; &lt;/style&gt; </code></pre> <p><strong>Below are my images:</strong></p> <p><img src="https://i.stack.imgur.com/MB06M.png" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/QZZew.png" alt="enter image description here"></p> <p>In the second image, title, icon and blue border line are disappeared. I have to show them because I am setting home enabled to true. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload