Reputation: 842
I am trying to implement a layout that looks like a tabbed view, but is it possible to implement it in such a way that if the user swipes horizontally, then it will switch to a different tab? A good example of this is the Google+ app for Android. In the streams Activity, there are three tabs (or subsections): Nearby, All Circles, and Incoming. Notice how when you swipe in one horizontal direction, the screen scrolls to the corresponding subsection. Is there a way to implement this?
Upvotes: 0
Views: 176
Reputation: 1628
You can achieve that with fragments and viewpager. you can use the things through android-support-v4 library. android-support-v4 library including the example matches your need.
Upvotes: 2