{"repo":"warting/android-signaturepad","free":true,"listed":false,"github":"https://github.com/warting/android-signaturepad","clone":"git clone https://github.com/warting/android-signaturepad.git","description":"Android Signature Pad is an Android library for drawing smooth signatures","language":"Kotlin","stars":180,"topics":["android-library","android","signature-pad","signature"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Android Signature Pad ==================== Android Signature Pad is an Android library for drawing smooth signatures. It uses variable width Bézier curve interpolation based on Smoother Signatures post by Square. Features Bézier implementation for a smoother line Variable point size based on velocity Customizable pen color and size Bitmap, SVG and Raw-data support Installation Latest version of the library can be found on Maven Central. For Gradle users Open your build.gradle and make sure that Maven Central repository is declared into repositories section: Then, include the library as dependency: or Usage Please see the /app example app for a more detailed code example of how to use the library. 1. Add the SignaturePad view to the layout you want to show. 2. Configure attributes. penMinWidth - The minimum width of the stroke (default: 3dp). penMaxWidth - The maximum width of the stroke (default: 7dp). penColor - The color of the stroke (default: Color.BLACK). velocityFilterWeight - Weight used to modify new velocity based on the previous velocity ( default: 0.9). clearOnDoubleClick - Double click to clear pad (default: false) 3. Get signature data getSignatureBitmap() - A signature bitmap with a default white background. You can also customize the image's coloring e.g. getSignatureBitmap(backgroundColor: Int, penColor: Int) getTransparentSignatureBitmap(trimBlankSpace: Boolean = false) - A signature bitmap with a transparent background. Set trimBlankSpace = true to crop the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/warting","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/warting/android-signaturepad/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}