当前位置: 动力学知识库 > 问答 > 编程问答 >

android - Disable single direction action in viewpager

问题描述:

I have a horizontal scrolling viewpager (ImageScroller) as a fragment in an activity that has pull down to refresh.

So if the touch event is in the viewpager, and a user swipes horizontally with a slight down direction, the view pager moves, as well as the pull down to refresh.

Now this view pager is at the top of the pages so I technically just need to monitor and disable the pull down action so it doesnt do pull down to refresh when scrolling in the imageviewer?

How can i disable this direction in the viewpager so the user can easily scroll in the images and not do a pull down to refresh but also able to scroll the content in the activity upwards?

分享给朋友:
您可能感兴趣的文章:
随机阅读: