Skip to content

Commit

Permalink
Moved the Sample (example) to a separate project on GitHub (https://g…
Browse files Browse the repository at this point in the history
…ithub.com/Almeros/android-gesture-detectors-example) to keep this project lean and mean
  • Loading branch information
Almeros committed Dec 12, 2017
1 parent 4b5380d commit 411d745
Show file tree
Hide file tree
Showing 17 changed files with 49 additions and 276 deletions.
69 changes: 49 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,64 @@ Since I was amazed Android has a ScaleGestureDetector since API level 8 but
myself. In the process I decided to create a small extendable framework for
GestureDetectors in general.

Download
--------

Gradle

compile 'com.almeros.android-gesture-detectors:library:1.0'

Maven

<dependency>
    <groupId>com.almeros.android-gesture-detectors</groupId>
    <artifactId>library</artifactId>
    <version>1.0</version>
</dependency>

Tutorials
---------

### Using gesture detectors
#### Blog on using gesture detectors

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](http://code.almeros.com/android-multitouch-gesture-detectors)

### Extending
#### Example application

If you like to just dive into a working example, please check out
[the example app (GitHub)](https://github.com/Almeros/android-gesture-detectors-example).


Dependencies / Downloads
------------------------
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:

#### build.gradle root

If you want to extend this framework with new gesture detectors please read
my tutorial about that here: *coming soon*
buildscript {
repositories {
...
maven { url 'https://jitpack.io' }
}
...
}

allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}

#### build.gradle app

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'
}


Extending / Contributing
------------------------

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)](https://github.com/Almeros/android-gesture-detectors-example) to make use
of your awesome new functionality/bugfixes!

I hope you'll send me a pull request with your FingerTwistGestureDetector or something ;)

Containments
------------
Expand Down Expand Up @@ -72,5 +101,5 @@ Abstract class that extends the BaseGestureDetector and that every new gesture
detector class for two finger operations should extend.

License
------------
-------
This project is licensed with the 2-clause BSD license.
2 changes: 0 additions & 2 deletions sample/.gitignore

This file was deleted.

19 changes: 0 additions & 19 deletions sample/build.gradle

This file was deleted.

3 changes: 0 additions & 3 deletions sample/gradle.properties

This file was deleted.

17 changes: 0 additions & 17 deletions sample/proguard-rules.pro

This file was deleted.

30 changes: 0 additions & 30 deletions sample/src/main/AndroidManifest.xml

This file was deleted.

This file was deleted.

Binary file removed sample/src/main/res/drawable-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed sample/src/main/res/drawable-mdpi/ic_launcher.png
Binary file not shown.
Binary file not shown.
Binary file removed sample/src/main/res/drawable-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file removed sample/src/main/res/drawable/basketball.png
Binary file not shown.
Binary file removed sample/src/main/res/drawable/earth.png
Binary file not shown.
Binary file removed sample/src/main/res/drawable/stars.png
Binary file not shown.
15 changes: 0 additions & 15 deletions sample/src/main/res/layout/main.xml

This file was deleted.

4 changes: 0 additions & 4 deletions sample/src/main/res/values/strings.xml

This file was deleted.

8 changes: 0 additions & 8 deletions sample/src/main/res/values/styles.xml

This file was deleted.

0 comments on commit 411d745

Please sign in to comment.