Setting text style for a Spinner?

by Mark Wyszomierski » Wed, 31 Mar 2010 02:44:52 GMT

Sponsored Links

I have a Spinner in a resource file. I'm giving it an
ArrayAdapter<String> to show.

What's the right way to style the font used by the spinner? I'd like
to change the size of the text and its color. I tried:

    android:textAppearance="@style/mystyle" />

but it's not being honored,



Setting text style for a Spinner?

by Mark Murphy » Wed, 31 Mar 2010 02:48:55 GMT


Set the font used by the Views served by the Adapter you associate with
the Spinner. A Spinner by itself has no text.

Mark Murphy (a Commons Guy)  | 

Android 2.x Programming Books: 


Sponsored Links

Other Threads

1. Read package name from AndroidManifest.xml at runtime?

Could you explain more what you are doing?  If you are doing an about box
for yourself, you either already know your package name or you can use
Context.getPackageName() to find the one you are using.

I guess you could open your AndroidManifest.xml using the AssetManager and
parse it, but there really should be no call for this.

On Sun, Mar 22, 2009 at 6:41 AM, Carl Whalley

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


2. How to check if there are registered broadcast listeners?

Will there be more than one broadcast receiver? If not, then an easy
way to do this would be to add another broadcast receiver with a low
priority, so that it receives the (ordered) broadcast last, and then
have that receiver pop up a toast. The other receiver should call
abortBroadcast() in that case to prevent the final receiver from
receiving the broadcast.


3. ALSA_SOUND make error

4. Upload pics from emulator

5. If the bluetooth is build as module not build in, where is better to insmod it

6. Retreivng data from internet source.

7. How to display text just over ProgressBar?