CanvasEditor
CanvasEditor copied to clipboard
How to disable Drawing?
Is there any way to disable drawing? I want to use only Image Sticker.
Set the brush color with the background color.
You can edit the code and disable touch events in PaintView class.
override fun onTouchEvent(event: MotionEvent): Boolean {
paintViewListener.onTouchEvent(event)
// motionTouchEventX = event.x
// motionTouchEventY = event.y
// when (event.action) {
// MotionEvent.ACTION_DOWN -> touchStart()
// MotionEvent.ACTION_MOVE -> touchMove()
// MotionEvent.ACTION_UP -> touchUp()
// }
gestureDetector.onTouchEvent(event)
return true
}