Created
November 10, 2017 08:57
-
-
Save Krishan14sharma/bfdb6fe59c2a039154f5bd2af95841f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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