CanvasEditor icon indicating copy to clipboard operation
CanvasEditor copied to clipboard

How to disable Drawing?

Open mg-ahir opened this issue 5 years ago • 2 comments

Is there any way to disable drawing? I want to use only Image Sticker.

mg-ahir avatar Jan 27 '21 03:01 mg-ahir

Set the brush color with the background color.

darshanwb avatar May 15 '24 08:05 darshanwb

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
    }

ZUCheema avatar Nov 16 '24 17:11 ZUCheema