I am using a chat application. The user can open several chats at the same time, and I want to allow him to switch between these chats with scrolling left or right. Like the gtalk app, for example. I am not sure what the best way to implement this is:
- Should I use one chat activity? If so, how to choose the right instance of activity to go to the next chat?
- Should I use only one instance of Activity and several views and switch between them, as in this example ?
- Or should I use Fragments and switch between them? Does the FragmentManager provide a way to select the correct fragment instance to switch between?
What do you think is the best solution and why? Any suggestions? Thanks for your help!
source share