简体   繁体   中英

Android - Slide to navigate between activities/listview items

I'm working on a beginner Android project and has a ListView with a long list of items. I would like to be able to slide to the left to go to the next Activity or slide to the right to go to the previous activity instead of always hitting the back button to view the entire list again.

Can anyone help me with a link to read on what I'm trying to do? I've already searched for the past two days but it seems I'm using the wrong search terms so I've been reading things I don't really need.

Thanks

An easy way to go about this is to use fragments with a viewpager:

http://developer.android.com/training/implementing-navigation/lateral.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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM