简体   繁体   中英

How to detect swipe gesture in mvvmcross

I am using mvvmcross pattern. I have a list of datasets. I am showing only one dataset on the view. When user swipes either left or right, then I need to reload the view to show corresponding dataset.

My dataset is big (around 100), I am afraid to use viewpager , it might be an issue in terms of memory.

I have used the following approach before Android: How to handle right to left swipe gestures , but I wonder how to detect/implement swipe gesture in mvvmcross ?

Swipe gestures are a View concern and are generally not implemented in a MVVM framework. MvvmCross has a Tap gesture recognizer for iOS only.

So since it is a View concern you should look at how this is done natively on Android.

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