{"id":22449895,"url":"https://github.com/turskyi/fingerdrawing","last_synced_at":"2026-04-25T16:33:39.096Z","repository":{"id":133703060,"uuid":"275843062","full_name":"Turskyi/FingerDrawing","owner":"Turskyi","description":"This sample demonstrates how to create a custom View that allows the user to draw on the screen with their finger.","archived":false,"fork":false,"pushed_at":"2024-07-28T21:49:11.000Z","size":1179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T12:16:26.587Z","etag":null,"topics":["android","educational","kotlin","sample-app","xml"],"latest_commit_sha":null,"homepage":"https://github.com/Turskyi/FingerDrawing","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Turskyi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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}},"created_at":"2020-06-29T14:42:59.000Z","updated_at":"2024-07-28T21:49:00.000Z","dependencies_parsed_at":"2024-07-28T22:42:13.933Z","dependency_job_id":"f1969fac-86b2-40e3-8a96-6d0740cd2828","html_url":"https://github.com/Turskyi/FingerDrawing","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Turskyi/FingerDrawing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turskyi%2FFingerDrawing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turskyi%2FFingerDrawing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turskyi%2FFingerDrawing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turskyi%2FFingerDrawing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Turskyi","download_url":"https://codeload.github.com/Turskyi/FingerDrawing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turskyi%2FFingerDrawing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32269459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","educational","kotlin","sample-app","xml"],"created_at":"2024-12-06T05:12:23.695Z","updated_at":"2026-04-25T16:33:39.080Z","avatar_url":"https://github.com/Turskyi.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg)](https://stand-with-ukraine.pp.ua)\n\u003cimg alt=\"GitHub commit activity\" src=\"https://img.shields.io/github/commit-activity/m/Turskyi/FingerDrawing\"\u003e\n\n# Finger Drawing Sample\n\nThis sample demonstrates how to create a custom View that allows the user to\ndraw on the screen with their finger.\n\n## Value:\n\nThis project provides a clear and concise example of:\n\n- Creating a custom View by extending the View class.\n- Handling touch events to capture user input.\n- Using Canvas and Paint to draw on the screen.\n- Creating a simple drawing application.\n  This sample can be used as a starting point for creating more complex custom\n  Views or for learning about touch event handling and drawing in Android.\n\n## Implementation Details:\n\nThe SignatureView class is a custom View that extends the View class. It uses\na Paint object to define the color and style of the drawing and a Path object\nto store the user's drawing path.\n\nThe onTouchEvent() method is overridden to handle touch events. When the user\ntouches the screen (ACTION_DOWN), the starting point of the path is set. As\nthe user moves their finger (ACTION_MOVE), the path is updated and the view is\ninvalidated to redraw the screen.\n\nThe onDraw() method is overridden to draw the path on the Canvas using the\nPaint object.\n\n## Usage:\n\nTo use the SignatureView, simply add it to your layout XML file:\n\n```xml\n\n\u003cview class=\"ua.turskyi.fingerdrawing.CanvasActivity$SignatureView\"\n    android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" /\u003e\n```\n\nThis will create a full-screen drawing area where the user can draw with their\nfinger.\n\n## Screenshot:\n\n\u003c!--suppress CheckImageSize --\u003e\n\u003cimg src=\"screenshot/Screenshot_20240728.png\" width=\"400\"  alt=\"screenshot\"\u003e\n\n## Contact:\n\nFor any inquiries or suggestions, please open an issue on the GitHub repository\nor reach out to me directly at\n[dmytro@turskyi.com](mailto:dmytro@turskyi.com).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturskyi%2Ffingerdrawing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturskyi%2Ffingerdrawing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturskyi%2Ffingerdrawing/lists"}