You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to show a custom view when the user is at the last item in my list (last message in chat app) and swiping up. I think i can do that with your lib but it doesn't work.
SimpleFingerGestures sfg = new SimpleFingerGestures();
sfg.setDebug(true);
sfg.setConsumeTouchEvents(true);
sfg.setOnFingerGestureListener(new SimpleFingerGestures.OnFingerGestureListener() {
@Override
public boolean onSwipeUp(int fingers, long gestureDuration, double gestureDistance) {
Log.d(TAG, "Swipe Up ----- Fingers: " + fingers + "\ngestureDuration: " + gestureDuration + "\ngestureDistance: " + gestureDistance);
return false;
}
@Override
public boolean onSwipeDown(int fingers, long gestureDuration, double gestureDistance) {
Log.d("Swipe", "Swipe Up Down ------ Fingers: " + fingers + "\ngestureDuration: " + gestureDuration + "\ngestureDistance: " + gestureDistance);
return false;
}
@Override
public boolean onSwipeLeft(int fingers, long gestureDuration, double gestureDistance) {
Log.d("Swipe", "Fingers: " + fingers + "\ngestureDuration: " + gestureDuration + "\ngestureDistance: " + gestureDistance);
return false;
}
@Override
public boolean onSwipeRight(int fingers, long gestureDuration, double gestureDistance) {
Log.d("Swipe", "Fingers: " + fingers + "\ngestureDuration: " + gestureDuration + "\ngestureDistance: " + gestureDistance);
return false;
}
@Override
public boolean onPinch(int fingers, long gestureDuration, double gestureDistance) {
return false;
}
@Override
public boolean onUnpinch(int fingers, long gestureDuration, double gestureDistance) {
return false;
}
@Override
public boolean onDoubleTap(int fingers) {
return false;
}
});
listMessages.setOnTouchListener(sfg);
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to show a custom view when the user is at the last item in my list (last message in chat app) and swiping up. I think i can do that with your lib but it doesn't work.
The text was updated successfully, but these errors were encountered: