Android Styling / Theming Search Only

tl; dr: The style of white text in the application theme is selected by the search dialog, making the search text invisible.

I struggle very much with what seems like a trivial issue.

My application uses a dark background, and I changed the color of the text brighter than the standard gray using #EEEEEE.

I implemented the Search Dialog (pre-Honeycomb) and it works well, but the text in the search dialog displays the same #EEEEEE, so it is practically invisible. Even the context menu displayed by long pressing the search text takes away #EEEEEE, therefore the text there is also invisible.

I pull my hair out and my hair runs out.

Style:

<style name="master" paret="@android:style/Theme.NoTitleBar">
    <item name="android:textColor">#EEEEEE</item>
    <item name="android:windowNoTitle">true</item>        
</style>

manifest:

<application android:icon="@drawable/icon"
             android:label="@string/app_label"
             android:theme="@style/master"
             android:hardwareAccelerated="true"
             android:debuggable="true"> 
+3
source share
2 answers

android:textColor , .

, android:textColor*. , Views -, , , ( Android). android.R.attr . , textColor....

, , , , , , , . , android:windowNoTitle true , :

<style name="master" parent="@android:style/Theme.NoTitleBar">
    <item name="android:textColorPrimary">#EEEEEE</item>
    <item name="android:textColorSecondary">#EEEEEE</item>
    <item name="android:textColorTertiary">#EEEEEE</item>
</style>
+5

, . , , textColor . , : http://blog.androgames.net/10/custom-android-dialog/

Android, .., .

, , ...

EDIT: : textColor , . , , "-", ( ). textColor , textColor.

0

All Articles