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

mardi 25 août 2015

[Q] Spinner in Lollipop (where to find it)



Not sure if this is the best place to ask this question or not. Anyways, can someone please tell me where I might be able to find the spinner (loading) in Android? I cannot find it in packages_and_settings/res or in framework_base/res anywhere:confused:

Thanks for any help!



jeudi 13 août 2015

Changing the colors of a spinner



Surely there must be a SIMPLE way to change the damn text colour of spinner control without creating string array resources, alternative text view layouts and having the app crash if you get one of the multiple steps wrong.

What has happened to the KISS principal here? I.E. Just change a property value in the layout editor!



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!