Update City Spinner with notifyDataSetChanged after state is selected

后端 未结 3 1628
余生分开走
余生分开走 2020-12-21 00:53

How do I update my city spinner once the user selects a state?

Both fields are populated using a DataCall.class that returns JSON

3条回答
  •  -上瘾入骨i
    2020-12-21 01:20

    Declare the city_array variable at the place where you assign a new JSONArray(). Anyways you are using it temporarily. Just set the adapter again.

提交回复
热议问题