Skip to content

Commit

Permalink
查看头像大图
Browse files Browse the repository at this point in the history
  • Loading branch information
846425567 committed Aug 9, 2015
1 parent 469d1fc commit 3d792f7
Show file tree
Hide file tree
Showing 29 changed files with 2,124 additions and 62 deletions.
3 changes: 3 additions & 0 deletions src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,8 @@

<activity android:name=".activity.StartActivity"
android:theme="@style/NoActionBar_trans"/>

<activity android:name=".activity.ImgShowerActivity"
android:theme="@style/NoActionBar_trans"/>
</application>
</manifest>
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 src/main/java/cn/sdu/online/findteam/Listener/FlingListener.java
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;
}
}

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);

}
Loading

0 comments on commit 3d792f7

Please sign in to comment.