Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sherlock action bar change text color

I am using sherlock action bar Version 4.1.0 (2012-05-17). How can I change the color of the text color in this screenshot ? On the actual device it is barelly readable

enter image description here

i have this theme

<style name="MyTheme" parent="@style/Theme.Sherlock.Light">
    <item name="android:textSize">20dp</item> 
</style>

And this in AndroidManifest.xml

<application
        android:name="abc.MyApp"
        android:icon="@drawable/ic_launcher"
        android:logo="@drawable/logo"
        android:label="@string/app_name"
        android:theme="@style/MyTheme" 
        >
like image 999
max4ever Avatar asked Aug 02 '12 10:08

max4ever


1 Answers

Actually i've managed to style the SearchView text color in abs 4.2 by doing the following:

<style name="MyTheme" parent="Theme.Sherlock.Light">

    <item name="searchAutoCompleteTextView">@style/Widget.Styled.SearchAutocompleteTextView</item>

    <item name="queryHint">@string/Search</item>
    <item name="android:queryHint">@string/Search</item>


</style>

<style name="Widget.Styled.SearchAutocompleteTextView" parent="Widget.Sherlock.Light.SearchAutoCompleteTextView">
    <item name="android:textColor">YOU_COLOR_HERE</item>

</style>
like image 191
forcewill Avatar answered Sep 20 '22 09:09

forcewill