Tuhin
Tuhin

Reputation: 11

Update listview single item after getting the response from serve in Android

I am working on a chat application, the chat functionality is working fine but I need to show the sent message delivery status to the sender. I am getting a status response from the server with message id and corresponding delivery status, now the issue is I am not able to update the status of a single item in the listview.

Due to low reputation I am not able to attach any screenshot here.

Upvotes: 0

Views: 360

Answers (1)

Shivani Gupta
Shivani Gupta

Reputation: 271

At the time of getting the status and msdId , you can notifyDataSetChanged() of the adapter before this line you can call adapter method in which you show the sent message delivery status and also you have to maintain the listview current positions.

Upvotes: 2

Related Questions