1. The data obtained on the network has been read and unread. After clicking, it should trigger a request to update the data and then update the data to read. 2. For local data and network, the message is read from the database. The default is unread. Click (or a self-defined trigger form) to update the data as read.
All of the above only ensures the synchronization of data. Secondly, you also need to update the list status through notifydatasetchanged of the listview adapter to ensure that the interface is displayed correctly.
1. The data obtained on the network has been read and unread. After clicking, it should trigger a request to update the data and then update the data to read.
2. For local data and network, the message is read from the database. The default is unread. Click (or a self-defined trigger form) to update the data as read.
All of the above only ensures the synchronization of data. Secondly, you also need to update the list status through notifydatasetchanged of the listview adapter to ensure that the interface is displayed correctly.