Coder Social home page Coder Social logo

jdiazu / signatureview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zahid-ali-shah/signatureview

0.0 0.0 0.0 580 KB

SignatureView is an open source Android library which allow developers to produce pen and paper like effect for creating signatures on Android

License: Apache License 2.0

Java 100.00%

signatureview's Introduction

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

Android app on Google Play

SignatureView Demo App image

SignatureView Demo App image

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 canvas

See 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

    <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"/>
  • 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 for the changelog

4. Developed by

Developed by Syed Zahid. You can follow me on Twitter

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 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.

signatureview's People

Contributors

dhanalakshmis avatar zahid-ali-shah avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.