Android library that lets you draw on it.
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.imabhishekkumar:CanvasView:1.0'
}
<dev.abhishekkumar.canvasview.CanvasView
android:id="@+id/canvasView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
val canvasView = findViewById<CanvasView>(R.id.canvasView)
canvasView.setColorBackground(R.color.colorPrimary)
canvasView.setColorMarker(R.color.colorAccent)
canvasView.setStrokeWidth(12f)
canvasView.getBitmap()
canvasView.setBitmap(bitmap)
canvasView.clearView()