I’m wondering how could i implement in an app the following behaviour : changing activities within the application using gesture similar to changing screens on the homescreen.
Let’s say i’m in activity B and if i do a sweep from left to right ( —> ) i would get to activity C and if i do it from right to left, i would get the A activity.
With the cool animation like when switching screens.
Any ideas ?
Thank you!
If you want to implement something like in the new Google+ app, you might look at
ViewPagerand one of theViewPagerIndicatorimplementations, for example this one (which I have already used successfully) or this one (which I’m going to check out over the weekend).This may in some cases be much easier than actually switching between activities, having the same “effect” for the user.