You need ViewPager for this Check this link https://www.journaldev.com/10096/android-viewpager-example-tutorial
There are many more links that can help you in this case. Search for ViewPager
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.