It is necessary to implement drawing on the screen. Similar to the brush in Windows point. Ie we squeezed a finger on the screen and drive, a line is drawn behind it, let go - it stopped. Full analogue of drawing a brush in the point. Any ideas how to implement this?

    2 answers 2

    ApiDemos -> TouchPaint see

    • How to clean the screen from the draw? - AndroidDev
    • very simple - draw a large rectangle on the whole screen :) - KoVadim
    • Do not believe it! Canvas.drawColor (Color.BLACK); - Anton Osenenko

    Here is an example of creating a simple drawing tool for Android.