All Projects → mukeshsolanki → Drawingview Android

mukeshsolanki / Drawingview Android

Licence: mit
DrawingView is a simple view that lets you draw on screen using your fingers and lets you save the drawings as images.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Drawingview Android

React Native Sketch View
A React Native component for touch based drawing supporting iOS and Android.
Stars: ✭ 97 (-52.91%)
Mutual labels:  sketch, draw
Drawingboard
手绘板
Stars: ✭ 77 (-62.62%)
Mutual labels:  sketch, draw
React Sketch
Sketch Tool for React-based applications, backed up by FabricJS
Stars: ✭ 414 (+100.97%)
Mutual labels:  sketch, draw
Isketchnfill
Software that can autocomplete sketches as the user starts drawing.
Stars: ✭ 151 (-26.7%)
Mutual labels:  sketch, draw
Autoplay
Gradle plugin for publishing Android artifacts to Google Play.
Stars: ✭ 201 (-2.43%)
Mutual labels:  gradle
Gradledoc
Gradle 中文文档
Stars: ✭ 192 (-6.8%)
Mutual labels:  gradle
Micromodule
Rebuild multiple complete module structures within the module.
Stars: ✭ 192 (-6.8%)
Mutual labels:  gradle
Ddd Java
Spring Boot + Java [ DDD Sample ]
Stars: ✭ 191 (-7.28%)
Mutual labels:  gradle
Techreborn
Tech Reborn is a completely standalone tech mod including tools and machines to gather resources, process materials, and progress through the mod. https://www.curseforge.com/minecraft/mc-mods/techreborn
Stars: ✭ 205 (-0.49%)
Mutual labels:  gradle
Pencil.js
✏️ Nice modular interactive 2D drawing library
Stars: ✭ 204 (-0.97%)
Mutual labels:  draw
Picasso
一款sketch生成代码插件,可将sketch设计稿自动解析成前端代码。
Stars: ✭ 191 (-7.28%)
Mutual labels:  sketch
Library Symbol Replacer
Sketch plugin to replace symbols in an existing documents with library symbols 💎 📚
Stars: ✭ 193 (-6.31%)
Mutual labels:  sketch
Copy Framer Code
A Sketch plugin that copies any selected layer to the clipboard as code that can be pasted straight into a Framer prototype.
Stars: ✭ 201 (-2.43%)
Mutual labels:  sketch
Appaddupdate
Android app 增量更新
Stars: ✭ 192 (-6.8%)
Mutual labels:  gradle
Vasdolly
Android V1 and V2 Signature Channel Package Plugin
Stars: ✭ 2,441 (+1084.95%)
Mutual labels:  gradle
Sketch Style Master
Sketch plugin for renaming shared styles
Stars: ✭ 193 (-6.31%)
Mutual labels:  sketch
Paddy Sketch Plugin
Automated padding, spacing and alignment for your Sketch layers
Stars: ✭ 2,219 (+977.18%)
Mutual labels:  sketch
Worldwindandroid
The NASA WorldWind Java SDK for Android (WWA) includes the library, examples and tutorials for building 3D virtual globe applications for phones and tablets.
Stars: ✭ 204 (-0.97%)
Mutual labels:  gradle
Xian
reactive风格的微服务框架
Stars: ✭ 196 (-4.85%)
Mutual labels:  gradle
Mxisd
Federated Matrix Identity Server
Stars: ✭ 194 (-5.83%)
Mutual labels:  gradle

DrawingView-Android



DrawingView is a simple view that lets you draw on screen using your fingers and lets you save the drawings as images.

Demo

Support Country Picker for Android

Drawing View is an independent project with ongoing development and support made possible thanks to donations made by these awesome backers. If you'd like to join them, please consider:

Getting started

Its really simple to integrate DrawingView in android. All you need to do make the following change to you build gradle.

Step 1. Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:

allprojects {
  repositories {
    ...
    maven { url "https://jitpack.io" }
  }
}

Step 2. Add the dependency

dependencies {
    implementation 'com.github.mukeshsolanki:DrawingView-Android:<latest-version>'
}

How to use DrawingView

Its fairly simple and straight forward to use DrawingView in you application. Just add the following in your layout where you want to display the DrawingView.

<com.mukesh.DrawingView
  android:id="@+id/scratch_pad"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:layout_above="@+id/buttons"
  />

and reference it in your activity/fragment and assign the DrawingView like wise.

DrawingView drawingView = (DrawingView) findViewById(R.id.scratch_pad);
drawingView.initializePen(); //To use the pen mode to draw on the screen
drawingView.initializeEraser(); //To use the eraser mode to clear the screen
drawingView.setBackgroundColor(@ColorInt int color); //To set the background color of the drawing view
drawingView.setEraserSize(float size); //To set the size of the eraser
drawingView.setPenSize(float size); //To set the size of the pen
drawingView.setPenColor(@ColorInt int color); //To set the color of the pen
drawingView.saveImage(String filePath, String filename, Bitmap.CompressFormat format, int quality); //To save the image after your done drawing
drawingView.loadImage(Bitmap bitmap); //Load image (your saved drawing)
drawingView.clear(); //clear image

Author

Maintained by Mukesh Solanki

Contribution

GitHub contributors

License

MIT License

Copyright (c) 2018 Mukesh Solanki

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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].