{"id":34610390,"url":"https://github.com/warting/android-signaturepad","last_synced_at":"2025-12-24T14:09:18.540Z","repository":{"id":36979778,"uuid":"410877553","full_name":"warting/android-signaturepad","owner":"warting","description":"Android Signature Pad is an Android library for drawing smooth signatures","archived":false,"fork":false,"pushed_at":"2025-12-15T04:08:01.000Z","size":923,"stargazers_count":171,"open_issues_count":17,"forks_count":36,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-12-20T21:54:23.260Z","etag":null,"topics":["android","android-library","signature","signature-pad"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/warting.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["warting"]}},"created_at":"2021-09-27T12:35:03.000Z","updated_at":"2025-12-19T12:12:40.000Z","dependencies_parsed_at":"2025-12-09T15:02:08.398Z","dependency_job_id":null,"html_url":"https://github.com/warting/android-signaturepad","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/warting/android-signaturepad","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warting%2Fandroid-signaturepad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warting%2Fandroid-signaturepad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warting%2Fandroid-signaturepad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warting%2Fandroid-signaturepad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/warting","download_url":"https://codeload.github.com/warting/android-signaturepad/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warting%2Fandroid-signaturepad/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28003726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-library","signature","signature-pad"],"created_at":"2025-12-24T14:09:09.731Z","updated_at":"2025-12-24T14:09:18.528Z","avatar_url":"https://github.com/warting.png","language":"Kotlin","funding_links":["https://github.com/sponsors/warting"],"categories":[],"sub_categories":[],"readme":"[![Maven Central](https://maven-badges.herokuapp.com/maven-central/se.warting.signature/signature-pad/badge.png)](https://maven-badges.herokuapp.com/maven-central/se.warting.signature/signature-pad)\n\nAndroid Signature Pad\n====================\n\nAndroid Signature Pad is an Android library for drawing smooth signatures. It uses variable width\nBézier curve interpolation based\non [Smoother Signatures](https://developer.squareup.com/blog/smoother-signatures) post\nby [Square](https://squareup.com).\n\n![Screenshot](/images/header.png)\n\n## Features\n\n* Bézier implementation for a smoother line\n* Variable point size based on velocity\n* Customizable pen color and size\n* Bitmap, SVG and Raw-data support\n\n## Installation\n\nLatest version of the library can be found on Maven Central.\n\n### For Gradle users\n\nOpen your `build.gradle` and make sure that Maven Central repository is declared into `repositories`\nsection:\n\n```gradle\n   repositories {\n       mavenCentral()\n   }\n```\n\nThen, include the library as dependency:\n\n```gradle\nimplementation 'se.warting.signature:signature-pad:\u003clatest_version\u003e' // jetpack Compose views\n```\nor\n```gradle\nimplementation 'se.warting.signature:signature-view:\u003clatest_version\u003e' // legacy android views\n```\n\n## Usage\n\n*Please see the `/app` example app for a more detailed code example of how to use the\nlibrary.*\n\n1. Add the `SignaturePad` view to the layout you want to show.\n\n```kotlin\nvar signaturePadAdapter: SignaturePadAdapter? = null\n\nSignaturePadView(onReady = {\n    signaturePadAdapter = it\n})\n\nButton(onClick = {\n    Log.d(\"\", signaturePadAdapter?.getSignatureSvg() ?: \"null\")\n}) {\n    Text(\"Save\")\n}\n```\n\n2. Configure attributes.\n\n* `penMinWidth` - The minimum width of the stroke (default: 3dp).\n* `penMaxWidth` - The maximum width of the stroke (default: 7dp).\n* `penColor` - The color of the stroke (default: Color.BLACK).\n* `velocityFilterWeight` - Weight used to modify new velocity based on the previous velocity (\n  default: 0.9).\n* `clearOnDoubleClick` - Double click to clear pad (default: false)\n\n3. Get signature data\n\n* `getSignatureBitmap()` - A signature bitmap with a default white background. You can also customize the image's coloring e.g. `getSignatureBitmap(backgroundColor: Int, penColor: Int)`\n\n* `getTransparentSignatureBitmap(trimBlankSpace: Boolean = false)` - A signature bitmap with a transparent background. Set `trimBlankSpace = true` to crop the bitmap to the signature bounds, removing surrounding blank space. You can also customize the image's coloring, e.g. `getTransparentSignatureBitmap(penColor: Int)`\n\n* `getSignatureSvg()` - A signature Scalable Vector Graphics document.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarting%2Fandroid-signaturepad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwarting%2Fandroid-signaturepad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarting%2Fandroid-signaturepad/lists"}