Affichage des articles dont le libellé est colours. Afficher tous les articles
Affichage des articles dont le libellé est colours. Afficher tous les articles

jeudi 13 août 2015

How do you change the colours of spinner control



I am trying to do so via this method:

Code:


style="@style/SpinnerTextViewStyle"

And I have this in one of the style.xml files created by default when I created the project.


Code:


<style name="SpinnerTextViewStyle">
        <item name="android:layout_width">fill_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textColor">#0000aa</item>
        <item name="android:textSize">16dp</item>
        <item name="android:background">#ffffff</item>
        <item name="android:padding">5dp</item>
    </style>


This

Code:


<item name="android:background">#ffffff</item>

seems to work in the textview part but

Code:


<item name="android:textColor">#0000aa</item>

is totally ignored.

There must be some way of doing this!