Please provide a way to edit or change the Paintview class's init method:
fun initCanvas() { extraBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) extraCanvas = Canvas(extraBitmap) extraCanvas.drawColor(ContextCompat.getColor(context, android.R.color.white)) invalidate() }
Please provide a way to edit or change the Paintview class's init method:
fun initCanvas() { extraBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) extraCanvas = Canvas(extraBitmap) extraCanvas.drawColor(ContextCompat.getColor(context, android.R.color.white)) invalidate() }