Skip to content

A drawing app, or paint app, in which the user can draw with different color, add a background picture, can erase, undo and redo last action, and can save your drawing in the gallery.

Notifications You must be signed in to change notification settings

shahrazeahmad07/Drawing-Canvas-App

Repository files navigation

Drawing-Canvas-App

This application has custom drawing widget. I have made the drawing widget with canvas.

The user can draw color, change brush size, change color, erase your drawing, clear screen, undo last action, redo last action, add background from the gallery and save your drawing in the gallery!!!

to access media from the gallery, we need read access for devices upto API 28 i.e., Android 9 to save image in gallery, we need write access for devices upto API 28 i.e., Android 9

for devices running Android 10 and plus, API 29 and plus, to deal with scoped-storage in android, a new concept, we use content resolver to save image in gallery!

ezgif-4-New

Screenshot_2023-03-31-04-23-57-90_f0899220bf1c3753e8998d1cc01182d2

Screenshot_2023-03-31-04-24-01-11_f0899220bf1c3753e8998d1cc01182d2

if you have any question feel free to ask.

Approach:

We just save all paths drawn by the user in an array and to undo, just pop the last saved path from originalPaths list to undoPathlist and call the method invalidate()

About

A drawing app, or paint app, in which the user can draw with different color, add a background picture, can erase, undo and redo last action, and can save your drawing in the gallery.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages