Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Changing actionBar SearchView color

$
0
0

Hi,

I'm trying to change the SearchView hint text color but it doesn't seem to work.

I did a quick test using the code here: https://jira.appcelerator.org/browse/TIMOB-11604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

and adding the a hintText property to the search view.

I added the following code to platform/android/res/values/style.xml

<resources xmlns:android="http://schemas.android.com/apk/res/android">  
   <style name="Theme.MyAppTheme" parent="android:style/Theme.Holo.Light.DarkActionBar">
        <item name="android:actionBarStyle">@style/Theme.MyAppTheme.ActionBar</item>
        <item name="android:actionBarWidgetTheme">@style/Theme.MyAppTheme.ActionBarWidgetTheme</item>
   </style>
 
   <style name="Theme.MyAppTheme.ActionBar" parent="android:style/Widget.Holo.Light.ActionBar">
        <item name="android:background">#080</item>
    </style>
 
    <style name="Theme.MyAppTheme.ActionBarWidgetTheme" parent="@android:style/Theme.Holo">
        <item name="android:textColorHint">#f00</item>
        <item name="android:textColor">#00f</item>
    </style>
</resources>
and referenced it in the tiapp.xml:
<application android:theme="@style/Theme.MyAppTheme">
The action bar is green as expected but no change opening the search view. Any clue?

Thanks!


Viewing all articles
Browse latest Browse all 8068

Trending Articles