Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

AltStyle によって変換されたページ (->オリジナル) /