Skip to content

Commit 411d745

Browse files
committed
Moved the Sample (example) to a separate project on GitHub (https://github.com/Almeros/android-gesture-detectors-example) to keep this project lean and mean
1 parent 4b5380d commit 411d745

File tree

17 files changed

+49
-276
lines changed

17 files changed

+49
-276
lines changed

README.md

Lines changed: 49 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,64 @@ Since I was amazed Android has a ScaleGestureDetector since API level 8 but
99
myself. In the process I decided to create a small extendable framework for
1010
GestureDetectors in general.
1111

12-
Download
13-
--------
14-
15-
Gradle
16-
17-
compile 'com.almeros.android-gesture-detectors:library:1.0'
18-
19-
Maven
20-
21-
<dependency>
22-
    <groupId>com.almeros.android-gesture-detectors</groupId>
23-
    <artifactId>library</artifactId>
24-
    <version>1.0</version>
25-
</dependency>
2612

2713
Tutorials
2814
---------
2915

30-
### Using gesture detectors
16+
#### Blog on using gesture detectors
3117

3218
If you want to use the ScaleGestureDetector and/or the gesture detectors
3319
from this project, please read my tutorial: [code.almeros.com/android-multitouch-gesture-detectors](http://code.almeros.com/android-multitouch-gesture-detectors)
3420

35-
### Extending
21+
#### Example application
22+
23+
If you like to just dive into a working example, please check out
24+
[the example app (GitHub)](https://github.com/Almeros/android-gesture-detectors-example).
25+
26+
27+
Dependencies / Downloads
28+
------------------------
29+
You can always just download a zip from GitHub and add its contents to your project. But dependency
30+
management might be easier for you using Gradle and jitpack.io. Include the following in your project:
31+
32+
#### build.gradle root
3633

37-
If you want to extend this framework with new gesture detectors please read
38-
my tutorial about that here: *coming soon*
34+
buildscript {
35+
repositories {
36+
...
37+
maven { url 'https://jitpack.io' }
38+
}
39+
...
40+
}
41+
42+
allprojects {
43+
repositories {
44+
...
45+
maven { url 'https://jitpack.io' }
46+
}
47+
}
48+
49+
#### build.gradle app
50+
51+
dependencies {
52+
// Note: Change 'v1.0' to whatever release you need or 'master-SNAPSHOT' for a snapshot of
53+
// the latest version on the master-branch.
54+
compile 'com.github.Almeros:android-gesture-detectors:v1.0'
55+
}
56+
57+
58+
Extending / Contributing
59+
------------------------
60+
61+
If you want to extend this framework with new gesture detectors please check out the existing classes
62+
and read the comments/javadocs.
63+
64+
I hope you'll send a pull request with your FingerTwistGestureDetector or something ;)
65+
66+
If you help maintaining this framework, first of all thank you, and second, please consider also updating
67+
[the example app (GitHub)](https://github.com/Almeros/android-gesture-detectors-example) to make use
68+
of your awesome new functionality/bugfixes!
3969

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

4271
Containments
4372
------------
@@ -72,5 +101,5 @@ Abstract class that extends the BaseGestureDetector and that every new gesture
72101
detector class for two finger operations should extend.
73102

74103
License
75-
------------
104+
-------
76105
This project is licensed with the 2-clause BSD license.

sample/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

sample/build.gradle

Lines changed: 0 additions & 19 deletions
This file was deleted.

sample/gradle.properties

Lines changed: 0 additions & 3 deletions
This file was deleted.

sample/proguard-rules.pro

Lines changed: 0 additions & 17 deletions
This file was deleted.

sample/src/main/AndroidManifest.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

sample/src/main/java/com/almeros/android/multitouch/sample/TouchActivity.java

Lines changed: 0 additions & 158 deletions
This file was deleted.
-9.18 KB
Binary file not shown.
-5.11 KB
Binary file not shown.
-14 KB
Binary file not shown.

0 commit comments

Comments
 (0)