Package 

Interface Dragger.DragListener

    • Method Summary

      Modifier and Type Method Description
      abstract void onPress(float x, float y) The user has pressed within the draggable area at the given position.
      abstract void onDragStart(float x, float y) The user has begun dragging.
      abstract void onDragTo(float x, float y) The user has dragged to the given coordinates.
      abstract void onReleasedAt(float x, float y) The user has stopped touching the drag area.
      abstract void onTap() The user tapped the drag area (instead of dragging it).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onPress

         abstract void onPress(float x, float y)

        The user has pressed within the draggable area at the given position.

        Parameters:
        x - x-coordinate of the user's press (in the parent View's coordinate space)
        y - y-coordiante of the user's press (in the parent View's coordinate space)
      • onDragStart

         abstract void onDragStart(float x, float y)

        The user has begun dragging.

        Parameters:
        x - x-coordinate of the user's drag start (in the parent View's coordinate space)
        y - y-coordiante of the user's drag start (in the parent View's coordinate space)
      • onDragTo

         abstract void onDragTo(float x, float y)

        The user has dragged to the given coordinates.

        Parameters:
        x - x-coordinate of the user's drag (in the parent View's coordinate space)
        y - y-coordiante of the user's drag (in the parent View's coordinate space)
      • onReleasedAt

         abstract void onReleasedAt(float x, float y)

        The user has stopped touching the drag area.

        Parameters:
        x - x-coordinate of the user's release (in the parent View's coordinate space)
        y - y-coordiante of the user's release (in the parent View's coordinate space)
      • onTap

         abstract void onTap()

        The user tapped the drag area (instead of dragging it).