Android notifyDataSetChanged

后端 未结 3 567
青春惊慌失措
青春惊慌失措 2020-12-03 14:47

I have a list which is filled with a custom ArrayAdapter.

I want to update a progress bar every second, so I am trying to use notifyDataSetChanged

3条回答
  •  时光说笑
    2020-12-03 15:16

    I probably have the answer. Try this:

    ((BaseAdapter) arrayAdapter).notifyDataSetChanged();
    

    I had the same problem and this was the solution for mine :)

提交回复
热议问题