github rubensousa/GravitySnapHelper 2.2.0

latest releases: 2.2.2, 2.2.1
4 years ago

2.2.0

New features

  • Added Gravity.CENTER support (#21)
  • Added setMaxFlingDistance and setMaxFlingSizeFraction to change the max fling distance allowed (#29)
  • Added setSnapToPadding to allow snapping to the padding set in the RecyclerView. Defaults to false (#58)
  • Added GravitySnapRecyclerView that uses GravitySnapHelper by default
  • Added setGravity to change the gravity of GravitySnapHelper
  • Added setScrollMsPerInch to change the scroll speed
  • Added setSnapListener to allow changing the SnapListener that was set or clearing it
  • GravityPagerSnapHelper is now deprecated. Use GravitySnapHelper together with setMaxFlingSizeFraction() to achieve the same behavior
  • Added updateSnap to update the snap position if for some reason snapping was stopped

Improvements

  • Improved behavior when smoothScrollToPosition is called. Now the smooth scroller is used
  • Added getters to all relevant properties
  • getCurrentSnappedPosition now searches for the correct snap view instead of returning the last position that we snapped to
  • Added missing NonNull and Nullable annotations

Don't miss a new GravitySnapHelper release

NewReleases is sending notifications on new releases.