Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
com.ryanharter.android-gesture-detectors:sample
Advanced tools
Gesture detector framework for multitouch handling on Android, based on Android's ScaleGestureDetector
Since I was amazed Android has a ScaleGestureDetector since API level 8 but (still) no such thing as a RotateGestureDetector I decided to create this class myself. In the process I decided to create a small extendable framework for GestureDetectors in general.
If you want to use the ScaleGestureDetector and/or the gesture detectors from this project, please read my tutorial: code.almeros.com/android-multitouch-gesture-detectors
If you like to just dive into a working example, please check out the example app (GitHub).
You can always just download a zip from GitHub and add its contents to your project. But dependency
management might be easier for you using Gradle and jitpack.io. Include the following in your project:
buildscript {
repositories {
...
maven { url 'https://jitpack.io' }
}
...
}
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
// Note: Change 'v1.0' to whatever release you need or 'master-SNAPSHOT' for a snapshot of
// the latest version on the master-branch.
compile 'com.github.Almeros:android-gesture-detectors:v1.0'
}
If you want to extend this framework with new gesture detectors please check out the existing classes and read the comments/javadocs.
I hope you'll send a pull request with your FingerTwistGestureDetector or something ;)
If you help maintaining this framework, first of all thank you, and second, please consider also updating the example app (GitHub) to make use of your awesome new functionality/bugfixes!
Helps finding out the rotation angle between the line of two fingers (with the normal or previous finger positions)
Convenience gesture detector to keep it easy moving an object around with one ore more fingers without losing the clean usage of the gesture detector pattern.
Detects a vertical two-finger shove. (If you place two fingers on screen with less than a 20 degree angle between them, this will detact movement on the Y-axis.)
This one is NOT in this framework, but is gesture detector that resides in the Android API since API level 8 (2.2).
Abstract class that every new gesture detector class should extend.
Abstract class that extends the BaseGestureDetector and that every new gesture detector class for two finger operations should extend.
This project is licensed with the 2-clause BSD license.
FAQs
Gesture detector framework for multitouch handling on Android, based on Android's ScaleGestureDetector
We found that com.ryanharter.android-gesture-detectors:sample demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.