A simple view to draw on supporting:
- undo, redo, eraser, clear
- set brush color and size
- set callback listeners for drawing and canvas state changes
Simply create view in your code or in xml and you're good to go.
Make sure root build.gradle repositories include JitPack
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
And DrawingView dependency is added to app build.gradle
dependencies {
implementation 'com.github.mvojtkovszky:DrawingView:$latest_version'
}