Skip to content

Instantly share code, notes, and snippets.

@Krishan14sharma
Created November 10, 2017 08:57
Show Gist options
  • Save Krishan14sharma/bfdb6fe59c2a039154f5bd2af95841f9 to your computer and use it in GitHub Desktop.
Save Krishan14sharma/bfdb6fe59c2a039154f5bd2af95841f9 to your computer and use it in GitHub Desktop.
override fun onTouchEvent(event: MotionEvent): Boolean {
val x = event.x
val y = event.y
when (event.action) {
MotionEvent.ACTION_DOWN -> {
}
MotionEvent.ACTION_MOVE -> {
}
MotionEvent.ACTION_UP -> {
}
MotionEvent.ACTION_CANCEL -> {
}
}
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment