Skip to content

Custom views | Touch events | Click | Long Press | Gestures | Canvas | MVP architecture | SOLID Principles

Notifications You must be signed in to change notification settings

MayuriKhinvasara/CanvasDrawView

Repository files navigation

Android Project to Create 'Custom Canvas Draw View' and create shapes on canvas

Features Implemented:

  1. Create a Custom View canvas.
  2. Create Shapes like Circle, Triangle And Rectangle
  3. Display buttons on screen, to add these shapes at random positions in screen.
  4. Taping on a button will transform that shape to another shape.
  5. User is able to UNDO action (creation and deletion) both
  6. Long Press on a shape, will delete that shape
  7. Deletion can be undone
  8. Stats screen shows count of all shapes
  9. Delete button to delete shapes of specific row in Canvas.

About UI I have tried to create minimal UI, focussing more on code functionality , simplicity and architecture.

About Data Structures Used 'LinkedList' of Shape objects to suit the required functionalities and minimize time and space complexity.

Article Publication

A detailed article explaining canvas creation and custom drawing for this repo is here

Screenshots

Canvas Main Page

Built With

About

Custom views | Touch events | Click | Long Press | Gestures | Canvas | MVP architecture | SOLID Principles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published