GTU Android Program 6 : Spinner Example

GTU Android Program 6 Understand resource folders Create spinner with strings taken from resource folder(res >> value folder) On changing spinner value, change image

gtu android program 6

Want to select one item from options ? You may have used drop down combo box in many similar programming language, Here in Android programming the similar kind of control is Spinner. Spinner is the most useful control in the android programming, Here is the complete example on Spinner.

Don’t forget to add 3 images into drawable folder named red.png, green.png and blue.png else you can download complete code using link at the bottom of the code.

Question related with android spinner

  • Explain Spinner and AutoCompleteTextView widgets taking suitable example.
  • Differentiate List and Spinner

Location : res\layout

FileName: activity_main.xml


Continue Reading…

Adarsh Patel

My Self Adarsh Suryakant Patel. Currently I am working as Assistant Professor at Parul Instiute of Engineering and Technology, MCA Department, Limda, Vadodara. Major Responsibility : * Lectures * Organizing Training and Expert Sessions for * Placement and Recruitment * Faculty Representative