Spinner does not show selected value

后端 未结 25 1448
-上瘾入骨i
-上瘾入骨i 2020-12-03 13:16

I have implemented the spinner by populating the array list through database.I can get and show the array list in my spinner array adapter but if I select the item in spinne

25条回答
  •  被撕碎了的回忆
    2020-12-03 13:54

    You should use the first Spinner to get the values.

    Try the following code:

    String provider = spinner1.getSelectedItem().toString();
    

    What you are doing is getting the default value of the spinner.

提交回复
热议问题