-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
846425567
committed
Aug 9, 2015
1 parent
469d1fc
commit 3d792f7
Showing
29 changed files
with
2,124 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/java/cn/sdu/online/findteam/Listener/FlingAnimationListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package cn.sdu.online.findteam.Listener; | ||
|
||
public interface FlingAnimationListener { | ||
|
||
public void onMove(float x, float y); | ||
|
||
public void onComplete(); | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
src/main/java/cn/sdu/online/findteam/Listener/FlingListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package cn.sdu.online.findteam.Listener; | ||
import android.view.GestureDetector.SimpleOnGestureListener; | ||
import android.view.MotionEvent; | ||
|
||
|
||
/** | ||
* @author Jason Polites | ||
* | ||
*/ | ||
public class FlingListener extends SimpleOnGestureListener { | ||
|
||
private float velocityX; | ||
private float velocityY; | ||
|
||
@Override | ||
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { | ||
this.velocityX = velocityX; | ||
this.velocityY = velocityY; | ||
return true; | ||
} | ||
|
||
public float getVelocityX() { | ||
return velocityX; | ||
} | ||
|
||
public float getVelocityY() { | ||
return velocityY; | ||
} | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
src/main/java/cn/sdu/online/findteam/Listener/GestureImageViewListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package cn.sdu.online.findteam.Listener; | ||
|
||
public interface GestureImageViewListener { | ||
|
||
public void onTouch(float x, float y); | ||
|
||
public void onScale(float scale); | ||
|
||
public void onPosition(float x, float y); | ||
|
||
} |
Oops, something went wrong.