{"id":18270174,"url":"https://github.com/Almeros/android-gesture-detectors","last_synced_at":"2025-04-04T23:31:46.032Z","repository":{"id":44458317,"uuid":"5765369","full_name":"Almeros/android-gesture-detectors","owner":"Almeros","description":"Gesture detector framework for multitouch handling on Android, based on Android's ScaleGestureDetector","archived":false,"fork":false,"pushed_at":"2020-07-08T06:54:36.000Z","size":1553,"stargazers_count":1124,"open_issues_count":8,"forks_count":365,"subscribers_count":49,"default_branch":"master","last_synced_at":"2025-04-01T18:08:07.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://code.almeros.com/android-multitouch-gesture-detectors","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Almeros.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-11T13:27:55.000Z","updated_at":"2025-03-31T20:20:58.000Z","dependencies_parsed_at":"2022-09-22T09:00:39.294Z","dependency_job_id":null,"html_url":"https://github.com/Almeros/android-gesture-detectors","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Almeros%2Fandroid-gesture-detectors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Almeros%2Fandroid-gesture-detectors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Almeros%2Fandroid-gesture-detectors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Almeros%2Fandroid-gesture-detectors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Almeros","download_url":"https://codeload.github.com/Almeros/android-gesture-detectors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266476,"owners_count":20910831,"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","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":[],"created_at":"2024-11-05T11:38:22.449Z","updated_at":"2025-04-04T23:31:45.359Z","avatar_url":"https://github.com/Almeros.png","language":"Java","funding_links":[],"categories":["etc","Libs","Uncategorized"],"sub_categories":["\u003cA NAME=\"Gesture\"\u003e\u003c/A\u003eGesture","Uncategorized"],"readme":"Android Gesture Detectors Framework\n===================================\n\nIntroduction\n------------\n\nSince I was amazed Android has a ScaleGestureDetector since API level 8 but \n(still) no such thing as a RotateGestureDetector I decided to create this class \nmyself. In the process I decided to create a small extendable framework for\nGestureDetectors in general.\n\n\nTutorials\n---------\n\n#### Blog on using gesture detectors \n\nIf you want to use the ScaleGestureDetector and/or the gesture detectors \nfrom this project, please read my tutorial: [code.almeros.com/android-multitouch-gesture-detectors](http://code.almeros.com/android-multitouch-gesture-detectors)\n\n#### Example application\n\nIf you like to just dive into a working example, please check out \n[the example app (GitHub)](https://github.com/Almeros/android-gesture-detectors-example). \n\n\nDependencies / Downloads\n------------------------\nYou can always just download a zip from GitHub and add its contents to your project. But dependency  \nmanagement might be easier for you using Gradle and jitpack.io. Include the following in your project:\n\n#### build.gradle root\n\n    buildscript {       \n        repositories {\n            ...\n            maven { url 'https://jitpack.io' }\n        }\n        ...\n    }\n    \n    allprojects {\n        repositories {\n            ...\n            maven { url 'https://jitpack.io' }\n        }\n    }\n    \n#### build.gradle app\n\n    dependencies {\n        // Note: Change 'v1.0' to whatever release you need or 'master-SNAPSHOT' for a snapshot of \n        // the latest version on the master-branch.\n        compile 'com.github.Almeros:android-gesture-detectors:v1.0'\n    }\n\n\nExtending / Contributing\n------------------------\n\nIf you want to extend this framework with new gesture detectors please check out the existing classes\nand read the comments/javadocs.\n\nI hope you'll send a pull request with your FingerTwistGestureDetector or something ;)\n\nIf you help maintaining this framework, first of all thank you, and second, please consider also updating \n[the example app (GitHub)](https://github.com/Almeros/android-gesture-detectors-example) to make use\nof your awesome new functionality/bugfixes!\n\n\nContainments\n------------\n\n### RotateGestureDetector\n\nHelps finding out the rotation angle between the line of two fingers (with the \nnormal or previous finger positions)\n\n### MoveGestureDetector\n\nConvenience gesture detector to keep it easy moving an object around with one \nore more fingers without losing the clean usage of the gesture detector pattern.\n\n### ShoveGestureDetector\n\nDetects a vertical two-finger shove. (If you place two fingers on screen with less than a 20 degree angle between them,\nthis will detact movement on the Y-axis.)\n\n### ScaleGestureDetector (default Android)\n\nThis one is NOT in this framework, but is gesture detector that resides in the \nAndroid API since API level 8 (2.2).\n\n### BaseGestureDetector (abstract)\n\nAbstract class that every new gesture detector class should extend.\n\n### TwoFingerGestureDetector (abstract)\n\nAbstract class that extends the BaseGestureDetector and that every new gesture \ndetector class for two finger operations should extend.\n\nLicense\n-------\nThis project is licensed with the 2-clause BSD license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlmeros%2Fandroid-gesture-detectors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAlmeros%2Fandroid-gesture-detectors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlmeros%2Fandroid-gesture-detectors/lists"}