I tried to ask this question before but I guess I didnt explain myself properly, so I will try again. I have a spinner (spinner5), I have created two string arrays (name_array and type_array) which are inside the values folder.
I also have two radio buttons (radiobtn1 and radiobtn2). I want to basically change the source of spinner5 when each radio button is selected.
if (radiobtn1 is selected) then I want spinner5 to display contents from name_array. else If (radiobtn2 is selected) then I want spinner5 to display contents from the type_array.
Hope someone can help. Thanks
1 Answer