All Projects → steelkiwi → SketchView

steelkiwi / SketchView

Licence: Apache-2.0 License
SketchView library provides a custom implementation of a canvas on which user can draw via gestures

Programming Languages

java
68154 projects - #9 most used programming language

SketchView Library & Sample

SketchView library provides a custom implementation of a canvas on which user can draw via gestures.

SketchView sample is a template-like sketch editor with following basic actions:

  1. Set brush color (from a range of available colors).

  2. Set brush size (from a set of available sizes).

  3. Set eraser size (from a set of available sizes).

  4. Set image as background of the sketch.

  5. Undo option (all gestures can be undone).

  6. Save sketch.

  7. Share sketch.

Further improvement:

  • Add support for zoom in/out and translation via gestures to SketchView.

How to use

Simply put SketchView into your layout:

<com.skd.sketchview.SketchView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/sketchView"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

To manipulate SketchView use its public methods:

  • setBrushes()
  • setSketchBackground()
  • setGestureColorAndSize()
  • undoLastGesture()
  • getSketchBimap()

More details are in SketchView sample.

Screenshot 1: editor

Screenshot 2: brush color picker

Screenshot 3: brush size picker

Screenshot 4: eraser size picker

Screenshot 5: sketch

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].