Skip navigation links
A C D E F G H I M N O P R S T U V Z 

A

abortAnimation() - Method in class com.alexvasilkov.gestures.utils.FloatScroller
Aborts the animation, setting the current value to the final value.
addOnStateChangeListener(GestureController.OnStateChangeListener) - Method in class com.alexvasilkov.gestures.GestureController
Adds listener for state changes.
addPositionUpdateListener(ViewPositionAnimator.PositionUpdateListener) - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
Adds position state changes listener that will be notified during animations.
addPositionUpdateListener(ViewPositionAnimator.PositionUpdateListener) - Method in class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator
Adds position state changes listener that will be notified during animations.
addView(View, int, ViewGroup.LayoutParams) - Method in class com.alexvasilkov.gestures.views.GestureFrameLayout
 
animateKeepInBounds() - Method in class com.alexvasilkov.gestures.GestureController
Animates to correct position withing the bounds.
animateStateTo(State) - Method in class com.alexvasilkov.gestures.GestureController
Animates current state to provided end state.
ANIMATIONS_DURATION - Static variable in class com.alexvasilkov.gestures.Settings
 
AnimatorView - Interface in com.alexvasilkov.gestures.views.interfaces
Common interface for views supporting position animation.
apply(ViewPosition, View) - Static method in class com.alexvasilkov.gestures.animation.ViewPosition
Computes view position and stores it in given pos.
apply(ViewPosition, Point) - Static method in class com.alexvasilkov.gestures.animation.ViewPosition
Computes minimal view position for given point.
applyState(State) - Method in class com.alexvasilkov.gestures.views.GestureFrameLayout
 
applyState(State) - Method in class com.alexvasilkov.gestures.views.GestureImageView
 
applyZoomPatch(State) - Method in class com.alexvasilkov.gestures.StateController
 
applyZoomPatch(float) - Method in class com.alexvasilkov.gestures.StateController
 

C

CircleGestureImageView - Class in com.alexvasilkov.gestures.commons.circle
 
CircleGestureImageView(Context) - Constructor for class com.alexvasilkov.gestures.commons.circle.CircleGestureImageView
 
CircleGestureImageView(Context, AttributeSet) - Constructor for class com.alexvasilkov.gestures.commons.circle.CircleGestureImageView
 
CircleGestureImageView(Context, AttributeSet, int) - Constructor for class com.alexvasilkov.gestures.commons.circle.CircleGestureImageView
 
CircleImageView - Class in com.alexvasilkov.gestures.commons.circle
 
CircleImageView(Context) - Constructor for class com.alexvasilkov.gestures.commons.circle.CircleImageView
 
CircleImageView(Context, AttributeSet) - Constructor for class com.alexvasilkov.gestures.commons.circle.CircleImageView
 
CircleImageView(Context, AttributeSet, int) - Constructor for class com.alexvasilkov.gestures.commons.circle.CircleImageView
 
cleanupRequest() - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
cleanupRequest() - Method in class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator
 
clipBounds(RectF) - Method in class com.alexvasilkov.gestures.views.GestureImageView
 
ClipBounds - Interface in com.alexvasilkov.gestures.views.interfaces
 
clipBounds(RectF) - Method in interface com.alexvasilkov.gestures.views.interfaces.ClipBounds
Clips view so only rect part will be drawn.
ClipHelper - Class in com.alexvasilkov.gestures.utils
Helper class to implement view clipping (with ClipView interface).
ClipHelper(View) - Constructor for class com.alexvasilkov.gestures.utils.ClipHelper
 
clipView(RectF, float) - Method in class com.alexvasilkov.gestures.commons.circle.CircleGestureImageView
 
clipView(RectF, float) - Method in class com.alexvasilkov.gestures.utils.ClipHelper
Clips view so only rect part (modified by view's state) will be drawn.
clipView(RectF, float) - Method in class com.alexvasilkov.gestures.views.GestureImageView
Clips view so only rect part (modified by view's state) will be drawn.
ClipView - Interface in com.alexvasilkov.gestures.views.interfaces
 
clipView(RectF, float) - Method in interface com.alexvasilkov.gestures.views.interfaces.ClipView
Clips view so only rect part (modified by view's state) will be drawn.
com.alexvasilkov.gestures - package com.alexvasilkov.gestures
 
com.alexvasilkov.gestures.animation - package com.alexvasilkov.gestures.animation
 
com.alexvasilkov.gestures.commons - package com.alexvasilkov.gestures.commons
This package contains common classes which are not directly related to library but still can be useful.
com.alexvasilkov.gestures.commons.circle - package com.alexvasilkov.gestures.commons.circle
 
com.alexvasilkov.gestures.transition - package com.alexvasilkov.gestures.transition
 
com.alexvasilkov.gestures.transition.tracker - package com.alexvasilkov.gestures.transition.tracker
 
com.alexvasilkov.gestures.utils - package com.alexvasilkov.gestures.utils
 
com.alexvasilkov.gestures.views - package com.alexvasilkov.gestures.views
 
com.alexvasilkov.gestures.views.interfaces - package com.alexvasilkov.gestures.views.interfaces
 
compare(float, float) - Static method in class com.alexvasilkov.gestures.State
Compares two float values, allowing small difference (see State.EPSILON).
computeNewPosition(float[], State, State) - Static method in class com.alexvasilkov.gestures.utils.MathUtils
 
computeScroll() - Method in class com.alexvasilkov.gestures.utils.FloatScroller
Computes the current value, returning true if the animation is still active and false if the animation has finished.
copy() - Method in class com.alexvasilkov.gestures.State
 
crop(Drawable, GestureController) - Static method in class com.alexvasilkov.gestures.utils.CropUtils
Crops image drawable into bitmap according to current image position.
crop() - Method in class com.alexvasilkov.gestures.views.GestureImageView
Crops bitmap as it is seen inside movement area: Settings.setMovementArea(int, int).
CropAreaView - Class in com.alexvasilkov.gestures.commons
View to draw cropping area above GestureImageView, useful when implementing cropping.
CropAreaView(Context) - Constructor for class com.alexvasilkov.gestures.commons.CropAreaView
 
CropAreaView(Context, AttributeSet) - Constructor for class com.alexvasilkov.gestures.commons.CropAreaView
 
CropUtils - Class in com.alexvasilkov.gestures.utils
 

D

DepthPageTransformer - Class in com.alexvasilkov.gestures.commons
Page transformer which will scroll previous page as usual and will scale next page with alpha.
DepthPageTransformer() - Constructor for class com.alexvasilkov.gestures.commons.DepthPageTransformer
 
destroyItem(ViewGroup, int, Object) - Method in class com.alexvasilkov.gestures.commons.RecyclePagerAdapter
 
disableBounds() - Method in class com.alexvasilkov.gestures.Settings
Disable bounds restrictions.
Calls to this method are counted, so if you called it N times you should call Settings.enableBounds() N times to re-enable bounds restrictions.
disableGestures() - Method in class com.alexvasilkov.gestures.Settings
Disable all gestures.
Calls to this method are counted, so if you called it N times you should call Settings.enableGestures() N times to re-enable all gestures.
disableViewPager(boolean) - Method in class com.alexvasilkov.gestures.GestureControllerForPager
Disables ViewPager scroll.
dispatchDraw(Canvas) - Method in class com.alexvasilkov.gestures.views.GestureFrameLayout
 
dispatchTouchEvent(MotionEvent) - Method in class com.alexvasilkov.gestures.views.GestureFrameLayout
 
draw(Canvas) - Method in class com.alexvasilkov.gestures.commons.circle.CircleGestureImageView
 
draw(Canvas) - Method in class com.alexvasilkov.gestures.views.GestureImageView
 

E

enableBounds() - Method in class com.alexvasilkov.gestures.Settings
Re-enable bounds restrictions disabled by Settings.disableBounds() method.
Calls to this method are counted, so if you called Settings.disableBounds() N times you should call this method N times to re-enable bounds restrictions.
enableGestures() - Method in class com.alexvasilkov.gestures.Settings
Re-enable all gestures disabled by Settings.disableGestures() method.
Calls to this method are counted, so if you called Settings.disableGestures() N times you should call this method N times to re-enable all gestures.
enableScrollInViewPager(ViewPager) - Method in class com.alexvasilkov.gestures.GestureControllerForPager
Enables scroll inside ViewPager (by enabling cross movement between ViewPager and it's child view).
enter(boolean) - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
Starts 'enter' animation from no specific position (position will be calculated based on gravity set in Settings).
enter(View, boolean) - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
Starts 'enter' animation from from view to to.
enter(ViewPosition, boolean) - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
Starts 'enter' animation from from position to to view.
enter(ID, boolean) - Method in class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator
Requests 'from' and 'to' views for given ID and starts enter animation when views are ready.
enterSingle(boolean) - Method in class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator
Similar to enter(ID, boolean) but starts entering from no specific id.
Do not use this method if you are actually going to use items ids in FromTracker or IntoTracker.
EPSILON - Static variable in class com.alexvasilkov.gestures.State
 
equals(Object) - Method in class com.alexvasilkov.gestures.State
 
equals(float, float) - Static method in class com.alexvasilkov.gestures.State
Compares two float values, allowing small difference (see State.EPSILON).
exit(boolean) - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
Starts 'exit' animation from to view back to from.
exit(boolean) - Method in class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator
Plays exit animation, should only be called after corresponding call to ViewsTransitionAnimator.enter(Object, boolean).

F

FloatScroller - Class in com.alexvasilkov.gestures.utils
A simple class that animates float values.Functionally similar to a Scroller.
FloatScroller() - Constructor for class com.alexvasilkov.gestures.utils.FloatScroller
 
forceFinished() - Method in class com.alexvasilkov.gestures.utils.FloatScroller
Force the finished field to a particular value.
Unlike FloatScroller.abortAnimation() the current value isn't set to the final value.
from(View) - Static method in class com.alexvasilkov.gestures.animation.ViewPosition
Computes and returns view position.
from(ViewsTransitionAnimator.RequestListener<ID>) - Static method in class com.alexvasilkov.gestures.transition.GestureTransitions
 
from(View) - Static method in class com.alexvasilkov.gestures.transition.GestureTransitions
 
from(RecyclerView, FromTracker<ID>) - Static method in class com.alexvasilkov.gestures.transition.GestureTransitions
 
from(RecyclerView, FromTracker<ID>, boolean) - Static method in class com.alexvasilkov.gestures.transition.GestureTransitions
 
from(ListView, FromTracker<ID>) - Static method in class com.alexvasilkov.gestures.transition.GestureTransitions
 
from(ListView, FromTracker<ID>, boolean) - Static method in class com.alexvasilkov.gestures.transition.GestureTransitions
 
fromNone() - Static method in class com.alexvasilkov.gestures.transition.GestureTransitions
 
FromTracker<ID> - Interface in com.alexvasilkov.gestures.transition.tracker
 

G

GestureController - Class in com.alexvasilkov.gestures
Handles touch events to update view's position state (State) based on current setup (Settings).
Settings can be obtained and altered through GestureController.getSettings().
Note, that some settings are required in order to correctly update state, see Settings.
GestureController(View) - Constructor for class com.alexvasilkov.gestures.GestureController
 
GestureController.OnGestureListener - Interface in com.alexvasilkov.gestures
Listener for different touch events.
GestureController.OnStateChangeListener - Interface in com.alexvasilkov.gestures
State changes listener.
GestureController.OnStateSourceChangeListener - Interface in com.alexvasilkov.gestures
State source changes listener.
GestureController.SimpleOnGestureListener - Class in com.alexvasilkov.gestures
Simple implementation of GestureController.OnGestureListener.
GestureController.StateSource - Enum in com.alexvasilkov.gestures
Source of state changes.
GestureControllerForPager - Class in com.alexvasilkov.gestures
Allows cross movement between view controlled by this GestureController and it's parent ViewPager by splitting scroll movements between them.
GestureControllerForPager(View) - Constructor for class com.alexvasilkov.gestures.GestureControllerForPager
 
GestureFrameLayout - Class in com.alexvasilkov.gestures.views
FrameLayout implementation controlled by GestureController (GestureFrameLayout.getController()).
GestureFrameLayout(Context) - Constructor for class com.alexvasilkov.gestures.views.GestureFrameLayout
 
GestureFrameLayout(Context, AttributeSet) - Constructor for class com.alexvasilkov.gestures.views.GestureFrameLayout
 
GestureFrameLayout(Context, AttributeSet, int) - Constructor for class com.alexvasilkov.gestures.views.GestureFrameLayout
 
GestureImageView - Class in com.alexvasilkov.gestures.views
ImageView implementation controlled by GestureController (GestureImageView.getController()).
GestureImageView(Context) - Constructor for class com.alexvasilkov.gestures.views.GestureImageView
 
GestureImageView(Context, AttributeSet) - Constructor for class com.alexvasilkov.gestures.views.GestureImageView
 
GestureImageView(Context, AttributeSet, int) - Constructor for class com.alexvasilkov.gestures.views.GestureImageView
 
GestureTransitions<ID> - Class in com.alexvasilkov.gestures.transition
Transition animation builder.
GestureView - Interface in com.alexvasilkov.gestures.views.interfaces
Common interface for all Gesture* views.
get(Matrix) - Method in class com.alexvasilkov.gestures.State
Applying state to provided matrix.
getAnimationsDuration() - Method in class com.alexvasilkov.gestures.Settings
 
getAnimator() - Method in class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator.RequestListener
 
getBitmapFromDrawable(Drawable) - Method in class com.alexvasilkov.gestures.commons.circle.CircleGestureImageView
 
getBitmapFromDrawable(Drawable) - Method in class com.alexvasilkov.gestures.commons.circle.CircleImageView
 
getBoundsType() - Method in class com.alexvasilkov.gestures.Settings
 
getChildMeasureSpecFixed(int, int, int) - Static method in class com.alexvasilkov.gestures.views.GestureFrameLayout
 
getController() - Method in class com.alexvasilkov.gestures.views.GestureFrameLayout
Returns GestureController which is a main engine for all gestures interactions.
getController() - Method in class com.alexvasilkov.gestures.views.GestureImageView
Returns GestureController which is a main engine for all gestures interactions.
getController() - Method in interface com.alexvasilkov.gestures.views.interfaces.GestureView
Returns GestureController which is a main engine for all gestures interactions.
getCurr() - Method in class com.alexvasilkov.gestures.utils.FloatScroller
 
getDefaultPivot(Settings, Point) - Static method in class com.alexvasilkov.gestures.utils.GravityUtils
Calculates default pivot point for scale and rotation.
getDoubleTapZoom() - Method in class com.alexvasilkov.gestures.Settings
 
getDuration() - Method in class com.alexvasilkov.gestures.utils.FloatScroller
 
getExitType() - Method in class com.alexvasilkov.gestures.Settings
 
getFinal() - Method in class com.alexvasilkov.gestures.utils.FloatScroller
 
getFitMethod() - Method in class com.alexvasilkov.gestures.Settings
 
getFitZoom(State) - Method in class com.alexvasilkov.gestures.StateController
 
getFromPos() - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
getFromView() - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
getGravity() - Method in class com.alexvasilkov.gestures.Settings
 
getIdByPosition(int) - Method in interface com.alexvasilkov.gestures.transition.tracker.IntoTracker
 
getIdByPosition(int) - Method in class com.alexvasilkov.gestures.transition.tracker.SimpleTracker
 
getImageH() - Method in class com.alexvasilkov.gestures.Settings
 
getImagePosition(State, Settings, Rect) - Static method in class com.alexvasilkov.gestures.utils.GravityUtils
Calculates image position (scaled and rotated) within viewport area with gravity applied.
getImagePosition(Matrix, Settings, Rect) - Static method in class com.alexvasilkov.gestures.utils.GravityUtils
Calculates image position (scaled and rotated) within viewport area with gravity applied.
getImageW() - Method in class com.alexvasilkov.gestures.Settings
 
getItemPosition(Object) - Method in class com.alexvasilkov.gestures.commons.RecyclePagerAdapter
 
getMaxZoom() - Method in class com.alexvasilkov.gestures.Settings
 
getMaxZoom(State) - Method in class com.alexvasilkov.gestures.StateController
 
getMinZoom() - Method in class com.alexvasilkov.gestures.Settings
 
getMinZoom(State) - Method in class com.alexvasilkov.gestures.StateController
 
getMovementArea(State, RectF) - Method in class com.alexvasilkov.gestures.StateController
Calculates area in which State.getX() & State.getY() values can change.
getMovementAreaH() - Method in class com.alexvasilkov.gestures.Settings
 
getMovementAreaPosition(Settings, Rect) - Static method in class com.alexvasilkov.gestures.utils.GravityUtils
Calculates movement area position within viewport area with gravity applied.
getMovementAreaW() - Method in class com.alexvasilkov.gestures.Settings
 
getOverscrollDistanceX() - Method in class com.alexvasilkov.gestures.Settings
 
getOverscrollDistanceY() - Method in class com.alexvasilkov.gestures.Settings
 
getOverzoomFactor() - Method in class com.alexvasilkov.gestures.Settings
 
getPosition() - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
 
getPositionAnimator() - Method in class com.alexvasilkov.gestures.views.GestureFrameLayout
getPositionAnimator() - Method in class com.alexvasilkov.gestures.views.GestureImageView
getPositionAnimator() - Method in interface com.alexvasilkov.gestures.views.interfaces.AnimatorView
 
getPositionById(Integer) - Method in class com.alexvasilkov.gestures.transition.tracker.SimpleTracker
 
getRequestedId() - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
getRotation() - Method in class com.alexvasilkov.gestures.State
 
getSettings() - Method in class com.alexvasilkov.gestures.GestureController
Returns settings that can be updated.
getStart() - Method in class com.alexvasilkov.gestures.utils.FloatScroller
 
getState() - Method in class com.alexvasilkov.gestures.GestureController
Current state.
getStateController() - Method in class com.alexvasilkov.gestures.GestureController
 
getToPosition() - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
 
getToView() - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
getViewAt(int) - Method in class com.alexvasilkov.gestures.transition.tracker.SimpleTracker
 
getViewById(Integer) - Method in class com.alexvasilkov.gestures.transition.tracker.SimpleTracker
 
getViewHolder(int) - Method in class com.alexvasilkov.gestures.commons.RecyclePagerAdapter
Returns ViewHolder for given position if it exists within ViewPager, or null otherwise.
getViewportH() - Method in class com.alexvasilkov.gestures.Settings
 
getViewportW() - Method in class com.alexvasilkov.gestures.Settings
 
getX() - Method in class com.alexvasilkov.gestures.State
 
getY() - Method in class com.alexvasilkov.gestures.State
 
getZoom() - Method in class com.alexvasilkov.gestures.State
 
GravityUtils - Class in com.alexvasilkov.gestures.utils
 

H

hashCode() - Method in class com.alexvasilkov.gestures.State
 
hasImageSize() - Method in class com.alexvasilkov.gestures.Settings
 
hasViewportSize() - Method in class com.alexvasilkov.gestures.Settings
 

I

image - Variable in class com.alexvasilkov.gestures.animation.ViewPosition
 
initAnimator(ViewsTransitionAnimator<ID>) - Method in class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator.RequestListener
 
initFromAttributes(Context, AttributeSet) - Method in class com.alexvasilkov.gestures.Settings
 
instantiateItem(ViewGroup, int) - Method in class com.alexvasilkov.gestures.commons.RecyclePagerAdapter
 
interpolate(float, float, float) - Static method in class com.alexvasilkov.gestures.utils.MathUtils
Interpolates from start value to the end one by given factor (from 0 to 1).
interpolate(RectF, RectF, RectF, float) - Static method in class com.alexvasilkov.gestures.utils.MathUtils
Interpolates from start rect to the end rect by given factor (from 0 to 1), storing result into out rect.
interpolate(State, State, State, float) - Static method in class com.alexvasilkov.gestures.utils.MathUtils
interpolate(State, State, float, float, State, float, float, float) - Static method in class com.alexvasilkov.gestures.utils.MathUtils
Interpolates from start state to end state by given factor (from 0 to 1), storing result into out state.
into(ViewsTransitionAnimator.RequestListener<ID>) - Method in class com.alexvasilkov.gestures.transition.GestureTransitions
 
into(AnimatorView) - Method in class com.alexvasilkov.gestures.transition.GestureTransitions
 
into(ViewPager, IntoTracker<ID>) - Method in class com.alexvasilkov.gestures.transition.GestureTransitions
 
into(ViewPager2, IntoTracker<ID>) - Method in class com.alexvasilkov.gestures.transition.GestureTransitions
 
IntoTracker<ID> - Interface in com.alexvasilkov.gestures.transition.tracker
 
invalidateChildInParent(int[], Rect) - Method in class com.alexvasilkov.gestures.views.GestureFrameLayout
 
isAnimating() - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
 
isAnimating() - Method in class com.alexvasilkov.gestures.GestureController
 
isAnimatingFling() - Method in class com.alexvasilkov.gestures.GestureController
 
isAnimatingState() - Method in class com.alexvasilkov.gestures.GestureController
 
isDoubleTapEnabled() - Method in class com.alexvasilkov.gestures.Settings
 
isEmpty() - Method in class com.alexvasilkov.gestures.State
 
isEnabled() - Method in class com.alexvasilkov.gestures.Settings
 
isExitEnabled() - Method in class com.alexvasilkov.gestures.Settings
 
isFillViewport() - Method in class com.alexvasilkov.gestures.Settings
 
isFinished() - Method in class com.alexvasilkov.gestures.utils.FloatScroller
 
isFlingEnabled() - Method in class com.alexvasilkov.gestures.Settings
 
isGesturesEnabled() - Method in class com.alexvasilkov.gestures.Settings
 
isLeaving() - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
 
isLeaving() - Method in class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator
 
isPanEnabled() - Method in class com.alexvasilkov.gestures.Settings
 
isReady() - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
isRestrictBounds() - Method in class com.alexvasilkov.gestures.Settings
 
isRestrictRotation() - Method in class com.alexvasilkov.gestures.Settings
 
isRotationEnabled() - Method in class com.alexvasilkov.gestures.Settings
 
isViewFromObject(View, Object) - Method in class com.alexvasilkov.gestures.commons.RecyclePagerAdapter
 
isZoomEnabled() - Method in class com.alexvasilkov.gestures.Settings
 
itemView - Variable in class com.alexvasilkov.gestures.commons.RecyclePagerAdapter.ViewHolder
 

M

mapIntRect(Matrix, Rect) - Static method in class com.alexvasilkov.gestures.utils.MathUtils
 
MathUtils - Class in com.alexvasilkov.gestures.utils
 
MAX_ZOOM - Static variable in class com.alexvasilkov.gestures.Settings
 
measureChildWithMargins(View, int, int, int, int) - Method in class com.alexvasilkov.gestures.views.GestureFrameLayout
 

N

newInstance() - Static method in class com.alexvasilkov.gestures.animation.ViewPosition
 
notifyStateReset() - Method in class com.alexvasilkov.gestures.GestureController
 
notifyStateUpdated() - Method in class com.alexvasilkov.gestures.GestureController
 

O

onBindViewHolder(VH, int) - Method in class com.alexvasilkov.gestures.commons.RecyclePagerAdapter
 
onCreateViewHolder(ViewGroup) - Method in class com.alexvasilkov.gestures.commons.RecyclePagerAdapter
 
onDoubleTap(MotionEvent) - Method in interface com.alexvasilkov.gestures.GestureController.OnGestureListener
 
onDoubleTap(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController.SimpleOnGestureListener
onDoubleTapEvent(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController
 
onDoubleTapEvent(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureControllerForPager
 
onDown(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController
 
onDown(MotionEvent) - Method in interface com.alexvasilkov.gestures.GestureController.OnGestureListener
 
onDown(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController.SimpleOnGestureListener
onDown(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureControllerForPager
 
onDraw(Canvas) - Method in class com.alexvasilkov.gestures.commons.circle.CircleImageView
 
onDraw(Canvas) - Method in class com.alexvasilkov.gestures.commons.CropAreaView
 
onFling(MotionEvent, MotionEvent, float, float) - Method in class com.alexvasilkov.gestures.GestureController
 
onFling(MotionEvent, MotionEvent, float, float) - Method in class com.alexvasilkov.gestures.GestureControllerForPager
 
onFlingAnimationFinished(boolean) - Method in class com.alexvasilkov.gestures.GestureController
 
onFlingScroll(int, int) - Method in class com.alexvasilkov.gestures.GestureController
 
onFromViewChanged(View, ViewPosition) - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
onFromViewChanged(View, ViewPosition) - Method in class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator
 
onInterceptTouch(View, MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController
 
onInterceptTouchEvent(MotionEvent) - Method in class com.alexvasilkov.gestures.views.GestureFrameLayout
 
onLongPress(MotionEvent) - Method in interface com.alexvasilkov.gestures.GestureController.OnGestureListener
Note, that long press is disabled by default, use View.setLongClickable(boolean) to enable it.
onLongPress(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController
 
onLongPress(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController.SimpleOnGestureListener
Note, that long press is disabled by default, use View.setLongClickable(boolean) to enable it.
onMeasure(int, int) - Method in class com.alexvasilkov.gestures.commons.circle.CircleImageView
 
onMeasure(int, int) - Method in class com.alexvasilkov.gestures.views.GestureFrameLayout
 
onPositionUpdate(float, boolean) - Method in interface com.alexvasilkov.gestures.animation.ViewPositionAnimator.PositionUpdateListener
 
onPostDraw(Canvas) - Method in class com.alexvasilkov.gestures.utils.ClipHelper
 
onPreDraw(Canvas) - Method in class com.alexvasilkov.gestures.utils.ClipHelper
 
onRecycleViewHolder(VH) - Method in class com.alexvasilkov.gestures.commons.RecyclePagerAdapter
 
onRequestView(ID) - Method in interface com.alexvasilkov.gestures.transition.ViewsCoordinator.OnRequestViewListener
Implementation should find corresponding View (or ViewPosition) for given index and provide it back to ViewsCoordinator.
onRotate(RotationGestureDetector) - Method in class com.alexvasilkov.gestures.GestureController
 
onRotationBegin(RotationGestureDetector) - Method in class com.alexvasilkov.gestures.GestureController
 
onRotationBegin(RotationGestureDetector) - Method in class com.alexvasilkov.gestures.GestureControllerForPager
 
onRotationEnd(RotationGestureDetector) - Method in class com.alexvasilkov.gestures.GestureController
 
onScale(ScaleGestureDetector) - Method in class com.alexvasilkov.gestures.GestureController
 
onScaleBegin(ScaleGestureDetector) - Method in class com.alexvasilkov.gestures.GestureController
 
onScaleBegin(ScaleGestureDetector) - Method in class com.alexvasilkov.gestures.GestureControllerForPager
 
onScaleEnd(ScaleGestureDetector) - Method in class com.alexvasilkov.gestures.GestureController
 
onScroll(MotionEvent, MotionEvent, float, float) - Method in class com.alexvasilkov.gestures.GestureController
 
onScroll(MotionEvent, MotionEvent, float, float) - Method in class com.alexvasilkov.gestures.GestureControllerForPager
 
onSingleTapConfirmed(MotionEvent) - Method in interface com.alexvasilkov.gestures.GestureController.OnGestureListener
 
onSingleTapConfirmed(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController
 
onSingleTapConfirmed(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController.SimpleOnGestureListener
onSingleTapUp(MotionEvent) - Method in interface com.alexvasilkov.gestures.GestureController.OnGestureListener
 
onSingleTapUp(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController
 
onSingleTapUp(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController.SimpleOnGestureListener
onSizeChanged(int, int, int, int) - Method in class com.alexvasilkov.gestures.commons.CropAreaView
 
onSizeChanged(int, int, int, int) - Method in class com.alexvasilkov.gestures.views.GestureFrameLayout
 
onSizeChanged(int, int, int, int) - Method in class com.alexvasilkov.gestures.views.GestureImageView
 
onStateAnimationFinished(boolean) - Method in class com.alexvasilkov.gestures.GestureController
 
onStateChanged(State) - Method in interface com.alexvasilkov.gestures.GestureController.OnStateChangeListener
 
onStateReset(State, State) - Method in interface com.alexvasilkov.gestures.GestureController.OnStateChangeListener
 
onStateSourceChanged(GestureController.StateSource) - Method in interface com.alexvasilkov.gestures.GestureController.OnStateSourceChangeListener
 
onTouch(View, MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController
 
onTouch(View, MotionEvent) - Method in class com.alexvasilkov.gestures.GestureControllerForPager
 
onTouchEvent(MotionEvent) - Method in class com.alexvasilkov.gestures.views.GestureFrameLayout
 
onTouchEvent(MotionEvent) - Method in class com.alexvasilkov.gestures.views.GestureImageView
 
onTouchInternal(View, MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController
 
onTouchInternal(View, MotionEvent) - Method in class com.alexvasilkov.gestures.GestureControllerForPager
 
onToViewChanged(AnimatorView, AnimatorView) - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
onToViewChanged(AnimatorView, AnimatorView) - Method in class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator
 
onUpOrCancel(MotionEvent) - Method in interface com.alexvasilkov.gestures.GestureController.OnGestureListener
 
onUpOrCancel(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController
 
onUpOrCancel(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController.SimpleOnGestureListener
onUpOrCancel(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureControllerForPager
 
onViewsReady(ID) - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
Called when both 'from' and 'to' views are ready for given index.
onViewsReady(ID) - Method in interface com.alexvasilkov.gestures.transition.ViewsCoordinator.OnViewsReadyListener
Will be called when both 'from' and 'to' views for given item index are ready.
onViewsReady(ID) - Method in class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator
 
ORIGINAL_ASPECT - Static variable in class com.alexvasilkov.gestures.commons.CropAreaView
 
OVERZOOM_FACTOR - Static variable in class com.alexvasilkov.gestures.Settings
 

P

pack() - Method in class com.alexvasilkov.gestures.animation.ViewPosition
Packs this ViewPosition into string, which can be passed i.e.

R

RecyclePagerAdapter<VH extends RecyclePagerAdapter.ViewHolder> - Class in com.alexvasilkov.gestures.commons
PagerAdapter implementation where each page is a regular view.
RecyclePagerAdapter() - Constructor for class com.alexvasilkov.gestures.commons.RecyclePagerAdapter
 
RecyclePagerAdapter.ViewHolder - Class in com.alexvasilkov.gestures.commons
 
removeOnStateChangeListener(GestureController.OnStateChangeListener) - Method in class com.alexvasilkov.gestures.GestureController
Removes listener for state changes.
removePositionUpdateListener(ViewPositionAnimator.PositionUpdateListener) - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
Removes position state changes listener as added by ViewPositionAnimator.addPositionUpdateListener(PositionUpdateListener).
removePositionUpdateListener(ViewPositionAnimator.PositionUpdateListener) - Method in class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator
Removes position state changes listener as added by addPositionUpdateListener(...).
request(ID) - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
requestDisallowInterceptTouchEvent(boolean) - Method in class com.alexvasilkov.gestures.views.GestureFrameLayout
 
RequestListener() - Constructor for class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator.RequestListener
 
resetState() - Method in class com.alexvasilkov.gestures.GestureController
Resets to initial state (default position, min zoom level) and notifies GestureController.OnStateChangeListener listeners.
restrict(float, float, float) - Static method in class com.alexvasilkov.gestures.utils.MathUtils
Keeps value within provided bounds.
rotateBy(float, float, float) - Method in class com.alexvasilkov.gestures.State
 
rotateTo(float, float, float) - Method in class com.alexvasilkov.gestures.State
 

S

set(ViewPosition) - Method in class com.alexvasilkov.gestures.animation.ViewPosition
 
set(float, float, float, float) - Method in class com.alexvasilkov.gestures.State
 
set(Matrix) - Method in class com.alexvasilkov.gestures.State
Applying state from given matrix.
set(State) - Method in class com.alexvasilkov.gestures.State
 
setAnimationsDuration(long) - Method in class com.alexvasilkov.gestures.Settings
Duration of animations.
setAspect(float) - Method in class com.alexvasilkov.gestures.commons.CropAreaView
If set to a value > 0 cropping area will be a maximum area fitting this view's paddings and having specified aspect ratio.
setBackColor(int) - Method in class com.alexvasilkov.gestures.commons.CropAreaView
Sets background color.
setBorderColor(int) - Method in class com.alexvasilkov.gestures.commons.CropAreaView
Sets borders color.
setBorderWidth(float) - Method in class com.alexvasilkov.gestures.commons.CropAreaView
Sets borders width in pixels.
setBoundsType(Settings.Bounds) - Method in class com.alexvasilkov.gestures.Settings
Setting movement bounds restriction type.
setCircle(boolean) - Method in class com.alexvasilkov.gestures.commons.circle.CircleGestureImageView
 
setCircle(boolean) - Method in class com.alexvasilkov.gestures.commons.circle.CircleImageView
 
setDoubleTapEnabled(boolean) - Method in class com.alexvasilkov.gestures.Settings
Sets whether zooming by double tap is enabled or not.
setDoubleTapZoom(float) - Method in class com.alexvasilkov.gestures.Settings
Setting double tap zoom level, should not be greater than Settings.getMaxZoom().
setDuration(long) - Method in class com.alexvasilkov.gestures.utils.FloatScroller
 
setExitEnabled(boolean) - Method in class com.alexvasilkov.gestures.Settings
Sets whether to detect and animate exit from gesture views.
setExitType(Settings.ExitType) - Method in class com.alexvasilkov.gestures.Settings
Sets which gestures to use to detect exit.
setFillViewport(boolean) - Method in class com.alexvasilkov.gestures.Settings
If set to true small images will be scaled to fit entire viewport (or entire movement area if it was set) even if this will require zoom level above max zoom level.
setFitMethod(Settings.Fit) - Method in class com.alexvasilkov.gestures.Settings
Setting image fitting method within viewport area.
setFlingEnabled(boolean) - Method in class com.alexvasilkov.gestures.Settings
Sets whether fling (inertial motion after scroll) is enabled or not.
setFrame(int, int, int, int) - Method in class com.alexvasilkov.gestures.commons.circle.CircleImageView
 
setFromListener(ViewsCoordinator.OnRequestViewListener<ID>) - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
setFromListener(ViewsCoordinator.OnRequestViewListener<ID>) - Method in class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator
 
setFromNone(ID) - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
Notifies that 'from' view is ready even if there is no such view.
setFromPos(ID, ViewPosition) - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
setFromView(ID, View) - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
setGravity(int) - Method in class com.alexvasilkov.gestures.Settings
Setting image gravity inside viewport area.
setImage(int, int) - Method in class com.alexvasilkov.gestures.Settings
Setting full image size.
setImageDrawable(Drawable) - Method in class com.alexvasilkov.gestures.commons.circle.CircleGestureImageView
 
setImageDrawable(Drawable) - Method in class com.alexvasilkov.gestures.commons.circle.CircleImageView
 
setImageDrawable(Drawable) - Method in class com.alexvasilkov.gestures.views.GestureImageView
 
setImageMatrix(Matrix) - Method in class com.alexvasilkov.gestures.commons.circle.CircleGestureImageView
 
setImageMatrix(Matrix) - Method in class com.alexvasilkov.gestures.commons.circle.CircleImageView
 
setImageResource(int) - Method in class com.alexvasilkov.gestures.commons.circle.CircleImageView
 
setImageResource(int) - Method in class com.alexvasilkov.gestures.views.GestureImageView
 
setImageView(GestureImageView) - Method in class com.alexvasilkov.gestures.commons.CropAreaView
 
setMaxZoom(float) - Method in class com.alexvasilkov.gestures.Settings
Setting max zoom level.
setMinZoom(float) - Method in class com.alexvasilkov.gestures.Settings
Setting min zoom level.
setMovementArea(int, int) - Method in class com.alexvasilkov.gestures.Settings
Setting movement area size.
setOnGesturesListener(GestureController.OnGestureListener) - Method in class com.alexvasilkov.gestures.GestureController
Sets listener for basic touch events.
setOnStateSourceChangeListener(GestureController.OnStateSourceChangeListener) - Method in class com.alexvasilkov.gestures.GestureController
Sets listener for state source changes.
setOverscrollDistance(float, float) - Method in class com.alexvasilkov.gestures.Settings
Setting overscroll distance in pixels.
setOverscrollDistance(Context, float, float) - Method in class com.alexvasilkov.gestures.Settings
Same as Settings.setOverscrollDistance(float, float) but accepts distance in DP.
setOverzoomFactor(float) - Method in class com.alexvasilkov.gestures.Settings
Setting overzoom factor.
setPanEnabled(boolean) - Method in class com.alexvasilkov.gestures.Settings
Sets whether panning is enabled or not.
setPivot(float, float) - Method in class com.alexvasilkov.gestures.GestureController
Sets pivot point for zooming when keeping image in bounds.
setReadyListener(ViewsCoordinator.OnViewsReadyListener<ID>) - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
setRestrictRotation(boolean) - Method in class com.alexvasilkov.gestures.Settings
Sets whether image rotation should stick to 90 degrees intervals or can be free.
setRotationEnabled(boolean) - Method in class com.alexvasilkov.gestures.Settings
Sets whether rotation gesture is enabled or not.
setRounded(boolean) - Method in class com.alexvasilkov.gestures.commons.CropAreaView
Whether to round bounds' corners or not.
setRulesCount(int, int) - Method in class com.alexvasilkov.gestures.commons.CropAreaView
Sets number of horizontal and vertical rules.
setRulesWidth(float) - Method in class com.alexvasilkov.gestures.commons.CropAreaView
Sets borders width in pixels.
setState(float, boolean, boolean) - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
Stops current animation and sets position state to particular values.
setTempZoomPatch(float) - Method in class com.alexvasilkov.gestures.StateController
 
Settings - Class in com.alexvasilkov.gestures
Various settings needed for GestureController and for StateController.
Settings.Bounds - Enum in com.alexvasilkov.gestures
 
Settings.ExitType - Enum in com.alexvasilkov.gestures
 
Settings.Fit - Enum in com.alexvasilkov.gestures
 
setToListener(ViewsCoordinator.OnRequestViewListener<ID>) - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
setToListener(ViewsCoordinator.OnRequestViewListener<ID>) - Method in class com.alexvasilkov.gestures.transition.ViewsTransitionAnimator
 
setToState(State, float) - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
Specifies target ('to') state and it's position which will be used to interpolate current state for intermediate positions (i.e.
setToView(ID, AnimatorView) - Method in class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
setViewport(int, int) - Method in class com.alexvasilkov.gestures.Settings
Setting viewport size.
setZoomEnabled(boolean) - Method in class com.alexvasilkov.gestures.Settings
Sets whether zooming is enabled or not.
shouldDisallowInterceptTouch(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureController
 
shouldDisallowInterceptTouch(MotionEvent) - Method in class com.alexvasilkov.gestures.GestureControllerForPager
 
SimpleOnGestureListener() - Constructor for class com.alexvasilkov.gestures.GestureController.SimpleOnGestureListener
 
SimpleTracker - Class in com.alexvasilkov.gestures.transition.tracker
Class implementing both FromTracker and IntoTracker assuming that positions will be used as items ids.
SimpleTracker() - Constructor for class com.alexvasilkov.gestures.transition.tracker.SimpleTracker
 
startScroll(float, float) - Method in class com.alexvasilkov.gestures.utils.FloatScroller
Starts an animation from startValue to finalValue.
State - Class in com.alexvasilkov.gestures
Represents 2d transformation state.
State() - Constructor for class com.alexvasilkov.gestures.State
 
StateController - Class in com.alexvasilkov.gestures
Helper class that holds reference to Settings object and controls some aspects of view State, such as movement bounds restrictions (see StateController.getMovementArea(State, RectF)) and dynamic min / max zoom levels (see StateController.getMinZoom(State) and StateController.getMaxZoom(State)).
stopAllAnimations() - Method in class com.alexvasilkov.gestures.GestureController
 
stopAnimation() - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
Stops current animation, if any.
stopFlingAnimation() - Method in class com.alexvasilkov.gestures.GestureController
 
stopStateAnimation() - Method in class com.alexvasilkov.gestures.GestureController
 

T

toString() - Method in class com.alexvasilkov.gestures.State
 
transformPage(View, float) - Method in class com.alexvasilkov.gestures.commons.DepthPageTransformer
 
translateBy(float, float) - Method in class com.alexvasilkov.gestures.State
 
translateTo(float, float) - Method in class com.alexvasilkov.gestures.State
 

U

unpack(String) - Static method in class com.alexvasilkov.gestures.animation.ViewPosition
Restores ViewPosition from the string created by ViewPosition.pack() method.
update(View) - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
Updates initial view in case it was changed.
update(ViewPosition) - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
Updates position of initial view in case it was changed.
update(boolean) - Method in class com.alexvasilkov.gestures.commons.CropAreaView
Applies area size, area position and corners rounding with optional animation.
updateState() - Method in class com.alexvasilkov.gestures.GestureController
Applies state restrictions and notifies GestureController.OnStateChangeListener listeners.
updateToNone() - Method in class com.alexvasilkov.gestures.animation.ViewPositionAnimator
Updates position of initial view to no specific position, in case 'to' view is not available anymore.

V

valueOf(String) - Static method in enum com.alexvasilkov.gestures.GestureController.StateSource
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.alexvasilkov.gestures.Settings.Bounds
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.alexvasilkov.gestures.Settings.ExitType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.alexvasilkov.gestures.Settings.Fit
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.alexvasilkov.gestures.GestureController.StateSource
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.alexvasilkov.gestures.Settings.Bounds
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.alexvasilkov.gestures.Settings.ExitType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.alexvasilkov.gestures.Settings.Fit
Returns an array containing the constants of this enum type, in the order they are declared.
view - Variable in class com.alexvasilkov.gestures.animation.ViewPosition
 
ViewHolder(View) - Constructor for class com.alexvasilkov.gestures.commons.RecyclePagerAdapter.ViewHolder
 
viewport - Variable in class com.alexvasilkov.gestures.animation.ViewPosition
 
ViewPosition - Class in com.alexvasilkov.gestures.animation
Helper class to compute and store view position used for transitions.
ViewPositionAnimator - Class in com.alexvasilkov.gestures.animation
Helper class to animate views from one position on screen to another.
ViewPositionAnimator(GestureView) - Constructor for class com.alexvasilkov.gestures.animation.ViewPositionAnimator
 
ViewPositionAnimator.PositionUpdateListener - Interface in com.alexvasilkov.gestures.animation
 
ViewsCoordinator<ID> - Class in com.alexvasilkov.gestures.transition
Main purpose of this class is to synchronize views of same item in two different sources to correctly start or update view transition animation.
ViewsCoordinator() - Constructor for class com.alexvasilkov.gestures.transition.ViewsCoordinator
 
ViewsCoordinator.OnRequestViewListener<ID> - Interface in com.alexvasilkov.gestures.transition
 
ViewsCoordinator.OnViewsReadyListener<ID> - Interface in com.alexvasilkov.gestures.transition
 
ViewsTransitionAnimator<ID> - Class in com.alexvasilkov.gestures.transition
Extension of ViewsCoordinator that allows requesting ViewsTransitionAnimator.enter(Object, boolean) or ViewsTransitionAnimator.exit(boolean) animations, keeps track of ViewPositionAnimator.PositionUpdateListener listeners and provides correct implementation of ViewsTransitionAnimator.isLeaving().
ViewsTransitionAnimator.RequestListener<ID> - Class in com.alexvasilkov.gestures.transition
 
visible - Variable in class com.alexvasilkov.gestures.animation.ViewPosition
 

Z

zoomBy(float, float, float) - Method in class com.alexvasilkov.gestures.State
 
zoomTo(float, float, float) - Method in class com.alexvasilkov.gestures.State
 
A C D E F G H I M N O P R S T U V Z 
Skip navigation links