SignatureView is an open source Android library which allow developers to produce pen and paper like effect for creating signatures on Android.
Click below link to download demo app from Play store
<img alt="Android app on Google Play" src="https://developer.android.com/images/brand/en_app_rgb_wo_45.png" />
SignatureView Demo App image
See example code (SignatureView-Example) from repository for details.
Add the following to your build.gradle
:
repositories {
jcenter()
}
dependencies {
compile 'com.kyanogen.signatureview:signature-view:1.2'
}
<com.kyanogen.signatureview.SignatureView
xmlns:sign="http://schemas.android.com/apk/res-auto"
android:id="@+id/signature_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
sign:penSize="5dp"
sign:backgroundColor="#ffffff"
sign:penColor="#000000"
sign:enableSignature="true"/>
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();
Click here for the changelog
Developed by Syed Zahid. You can follow me on Twitter
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 at
http://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.