GTU DE Sem6 – 3360704 – 6 – Create spinner with strings taken from resource folder(res >> value folder) On changing spinner value change image

GTU DE Sem6 – 3360704 – 6 – Create spinner with strings taken from resource folder(res >> value folder) On changing spinner value change image

GTU DE Sem6 - 3360704 - 6 - Create spinner with strings taken from resource folder(res >> value folder) On changing spinner value change image

The most important functionality, ie. How to take input from user like combobox. Here in Android there is concept called as Spinner. In Spinner you can add values using Array and finally you can able to trace that values when someone selects any items from the Spinner. Following example explains how to use Spinner and Display images on Imageview on the selection of the Array Options.

 

FileName: MainActivity.java

 

FileName: activity_main.xml

 

 FileName: strings.xml

 

Output 1

GTU DE Sem6 - 3360704 - 6 - Create spinner with strings taken from resource folder(res >> value folder) On changing spinner value change image

Output 2

GTU DE Sem6 - 3360704 - 6 - Create spinner with strings taken from resource folder(res >> value folder) On changing spinner value change image

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