Learning Android Development
Code Simple Android Jetpack Compose Drawing App
Detect touch to draw on Canvas using Jetpack Compose
Published in
4 min readOct 31, 2020
If you plan to learn Android, the most fun app to start is to make a simple drawing app. Instead of learning the conventional way of drawing, let’s learn using the latest Android Jetpack Compose to do so.
Pre-requisite of Setting Jetpack Compose
As Jetpack Compose is still in Alpha release, to use it, you need to download Android Studio 4.2 (Canary version) and do the setup as below
Drawing in Jetpack Compose
To have a drawing app, we just need three things
- A Canvas for one to draw onto
- The touch detection (touch down, and touch move)
- Drawing the path based…