GravitySnapHelper insteadLinearSnapHelper that allows snapping to an edge or to the center.RecyclerView used by GravitySnapHelper
changes its scroll state to RecyclerView.SCROLL_STATE_IDLE
and there's a valid snap position.OrientationAwareRecyclerView that uses a default GravitySnapHelperGravitySnapHelper
and dispatches a smooth scroll for the new snap position.GravitySnapHelper
and dispatches a smooth scroll for the new snap position.GravitySnapHelper.SnapListener to listen for snap eventsGravitySnapHelper.scrollToPosition(int),
this method will generally always find a snap view if the position is valid.