Welcome Android Developpers

Welcome Android Developpers
My name is Mathias Séguy, I am an Android Expert and Trainer and created the Android2EE company.

For full information, it’s here : Android2EE's Training
You can meet me on Google+, follow me on Twitter or on LinkedIn
Showing posts with label spinner. Show all posts
Showing posts with label spinner. Show all posts

Monday, November 21, 2011

Spinner, Managing size and text


Bandeau Conference

Hello,
Sometimes, when using a spinner, you want to manage its size and the font of the displayed text.
To do that you need to do 3 actions (I do that change on the Android spinner example : http://developer.android.com/guide/tutorials/views/hello-spinner.html
1.      Create a spinnertext.xml in your layout folder and define how the spinner’s title has to be displayed
2.      Change your spinner size in your main.xml (where your spinner is defined)
3.      Change your spinner declaration in your activity