Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zahid-ali-shah/SignatureView
SignatureView is an open source Android library which allow developers to produce pen and paper like effect for creating signatures on Android
https://github.com/zahid-ali-shah/SignatureView
android bitmap creating-signatures paper signatureview signatureview-demo
Last synced: 3 months ago
JSON representation
SignatureView is an open source Android library which allow developers to produce pen and paper like effect for creating signatures on Android
- Host: GitHub
- URL: https://github.com/zahid-ali-shah/SignatureView
- Owner: zahid-ali-shah
- License: apache-2.0
- Created: 2015-09-20T09:54:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-05T18:43:31.000Z (almost 4 years ago)
- Last Synced: 2024-08-03T10:21:04.215Z (7 months ago)
- Topics: android, bitmap, creating-signatures, paper, signatureview, signatureview-demo
- Language: Java
- Homepage:
- Size: 567 KB
- Stars: 240
- Watchers: 13
- Forks: 68
- Open Issues: 4
-
Metadata Files:
- Readme: Readme.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-mobile-collections - Signature view in android
README
## This project is no longer maintained.
### It works fine, but you have to do bug fixes (if any) for yourself# 1. Overview
SignatureView is an open source Android library which allow developers to produce pen and paper like effect for creating signatures on Android.
#### 1.1 Play Store Demo App
Click below link to download demo app from Play store
**SignatureView Demo App image**
![SignatureView Demo App image](./screenshot.png "SignatureView")
#### 1.2 Features
1. Smooth signatures
2. Auto handling of stroke thickness on the basis of velocity
3. Get signature as bitmap
4. Change stroke color and background color
5. Enable/Disable signature on canvasSee example code (SignatureView-Example) from repository for details.
## 2 Getting Started Using the Library
#### 2.1 Setup
Add the following to your `build.gradle`:
repositories {
jcenter()
}
dependencies {
compile 'com.kyanogen.signatureview:signature-view:1.2'
}#### 2.2 How to use view in xml layout
* First add Android XML **namespace**: xmlns:sign="http://schemas.android.com/apk/res-auto"
* **sign:penSize** = set pen stroke size; default value is 3dp
* **sign:backgroundColor** = set background color; default value is #FFFFFF
* **sign:penColor** = set pen stroke color; default value is #4169e1
* **sign:enableSignature** = enable/disable drawing signature on view#### 2.3 Other functions
SignatureView signatureView = (SignatureView) findViewById(R.id.signature_view);
.
.
.**Clear screen**
signatureView.clearCanvas();
**Is Bitmap Empty**
signatureView.isBitmapEmpty()**Get SignatureView as bitmap**
Bitmap bitmap = signatureView.getSignatureBitmap();
# 3. Changelog
[Click here](CHANGELOG.md) for the changelog
# 4. Developed by
Developed by Syed Zahid. You can follow me on# 5. License
Copyright 2015-2018
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.