In Android can I implement swipe between tabs functionality using tab-host. Is it possible to use this functionality without fragments. When we are targeting older android versions how can we implement this feature. Can someone help me. Thank You!
If you are going to use Fragments, go by @vipulmittal answer Or else you want to implement touch listener like SimpleGestureListener based on your requirements. Good example is here
The following link should get you started:
http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/
It uses view pager and adds views of each tab int it. On tab change listener it changes the view in view pager.
If you are going to use Fragments, go by @vipulmittal answer Or else you want to implement touch listener like SimpleGestureListener based on your requirements. Good example is here
Yes it is . Just implement a touch listener on the frame layout and get the x,y and the motion event. if and implement the functionality accordingly.
© 2022 - 2024 — McMap. All rights reserved.