Application draws lines according to user touch events and erases drawn picture after device rotation.
Demonstration video is available by link - https://drive.google.com/file/d/11foOsnf6qDJp0Kg5UGJZyGQ-IaVCFJvF/view?usp=sharing
Android documentation:
- Canvas - https://developer.android.com/reference/android/graphics/Canvas
- Smooth lines drawing method - https://developer.android.com/reference/android/graphics/Path#quadTo(float,%20float,%20float,%20float)
- Touch tolerance value - https://developer.android.com/reference/android/view/ViewConfiguration.html#getScaledTouchSlop()
- Managing touch events - https://developer.android.com/training/graphics/opengl/touch