Skip to content

Instantly share code, notes, and snippets.

@Stickerbox
Created March 30, 2018 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Stickerbox/aadd0da874562779ef49d95124fd7474 to your computer and use it in GitHub Desktop.
Save Stickerbox/aadd0da874562779ef49d95124fd7474 to your computer and use it in GitHub Desktop.
class FixedViewPager @JvmOverloads constructor(context: Context,
attrs: AttributeSet? = null) : ViewPager(context, attrs) {
override fun onTouchEvent(ev: MotionEvent?) = false
override fun onInterceptTouchEvent(ev: MotionEvent?) = false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment