Skip to content

Releases: rubensousa/GravitySnapHelper

2.2.2

01 Sep 21:47
5336f03
Compare
Choose a tag to compare

2.2.1

27 May 18:35
ebf8769
Compare
Choose a tag to compare
  • Fix SnapListener not being called when snapping to the first position sometimes (#64)

2.2.0

31 Aug 17:58
Compare
Choose a tag to compare

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

2.1.0

17 Aug 13:02
Compare
Choose a tag to compare
  • OrientationAwareRecyclerView doesn't depend on LinearLayoutManager directly
  • Fix #57
  • Added getCurrentSnappedPosition to GravitySnapHelper and GravityPagerSnapHelper

2.0

11 Nov 19:43
Compare
Choose a tag to compare
2.0

New features:

  • Migrated to AndroidX.
  • Added smoothScrollToPosition and scrollToPosition methods that'll snap to a certain position.
  • Added OrientationAwareRecyclerView that only handles scroll events according to its orientation.

Fixes:

  • Fixed snapping not working correctly for RecyclerViews with padding (#49)
  • Fixed snapping not considering GridLayoutManager.SpanSizeLookup (#52)

1.5

10 Dec 19:19
Compare
Choose a tag to compare
1.5
  • Handle reverse layout #40

1.4

05 Dec 19:07
Compare
Choose a tag to compare
1.4
  • Add Nullable and NonNull annotations
  • Update support library

1.3

26 Jul 16:41
Compare
Choose a tag to compare
1.3
  • Fixed #23
  • Bump min sdk to 14

1.2

17 Jun 14:02
Compare
Choose a tag to compare
1.2
  • Added support for GridLayoutManager

1.1

25 Mar 17:26
Compare
Choose a tag to compare
1.1
  • Add GravityPagerSnapHelper

  • Update support library