How to update a spinner dynamically?

后端 未结 10 1161
北荒
北荒 2020-12-08 02:32

I\'ve been trying to update my spinner in android dynamically but nothing I try has been working.

This is the following code I\'m using to update the spinner.

10条回答
  •  醉梦人生
    2020-12-08 03:12

    When you set up the spinner adapter add

    spinnerAdapter.setNotifyOnChange(true);
    

    From then on when you add new data it will be automatically updated.

提交回复
热议问题