Setting text style for a Spinner?

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


Sponsored Links
 Hi,

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:

  <Spinner
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textAppearance="@style/mystyle" />

but it's not being honored,

Thanks

--



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)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android 2.x Programming Books:  http://commonsware.com/books 

--


Sponsored Links


Other Threads

1. How to get raw video frames?

Hello,

I am trying to get the raw video frames from the camera.
Is there any other way than using "startPreview" and
"setPreviewCallback" method?

Is there anyway we can get the raw video frames at the native layer
using similar approach using direct C++ classes?

Thanks in advance.

Vishal

-- 

2. Delay Tolerant Networking (DTN) Protocol

Hi,

 

Does anybody know whether Delay Tolerant Networking (DTN) protocol has been 
added to Android's mobile stack or not ? Any references or links would be great 
if you're aware of a group, webpage, code repository etc.

 

Cheers,

 

Emre
                                          
_________________________________________________________________
Introducing Windows phone.
http://go.microsoft.com/?linkid=9708122

-- 

3. A good opportunity to investment

4. Android Sudah Digunakan di 26 Ponsel

5. Tanya lagi....

6. We need a Drag and Drop control for Android

7. getRotationMatrix and getOrientation