Android notifyDataSetChanged

后端 未结 3 556
青春惊慌失措
青春惊慌失措 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:19

    If you are not calling this from the main thread try having the main thread call this function. That is usually the problem when notifyDataSetChanged isn't updating the actual screen contents.

提交回复
热议问题