How do I refresh the list view?

Asked 2 years ago, Updated 2 years ago, 111 views

I want to refresh the list view when I dynamically delete additional data on Android, how do I do it?

android android-listview refresh

2022-09-21 21:29

1 Answers

Call notifyDataSetChanged() in the data modification part of the list view adapter. http://androidnote.tistory.com/entry/%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C-ListView-%EA%B0%B1%EC%8B%A0%ED%95%98%EA%B8%B0 <- Related examples.


2022-09-21 21:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.