Android efficient way to handle multiple lists -


My application allows users to chat with friends (like Skype or Whatsapp), so I have a "conversation" "(A list).

Users can change from one conversation to another, therefore, the problem is changing from one list to another, or "updating" the complete list of messages.

What is the best way to do this? (Display and memory) - Remove all the elements from the list and add new messages? - Use multiple list views and adapters? ...

Thank you!

I will say how it all depends on how you are accumulating messages, and around it Many other rotating parameters

However, I will probably cache messages locally so that when users choose a new conversation they can first see it, while loading new messages, the old messages are a list view, one type of one List adapter and a list that I clean up when switching between conversations.

This can not be the most favorable approach, but how can I do it in this scenario. / P>

Comments