onFling method of Gallery not getting called on swipe of images
Posted
by
dnana
on Stack Overflow
See other posts from Stack Overflow
or by dnana
Published on 2012-11-05T16:44:03Z
Indexed on
2012/11/05
17:00 UTC
Read the original article
Hit count: 148
android
I have MYGallery class extended by Gallery. onSwipe onFling method is not getting called what need to do.
code is as below
public MyGallery(PhotoAlbumDetailActivity context) {
super(context);
this.context = context;
this.setFadingEdgeLength(0);
//this.setSpacing(10);
}
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
System.out.println("On Fling");
}
in my main activity this.mConverseGallery = new ConverseGallery(this);
© Stack Overflow or respective owner