I currently use the onBackPressed() to switch between layouts in an android app, but that's not a very traditional method. I want to implement a swipe/slide gesture to switch between them. Any ideas on how to do that?
You are looking for ViewPager
http://developer.android.com/reference/android/support/v4/view/ViewPager.html
Also have a look at official examples here: http://developer.android.com/training/animation/screen-slide.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.