Skip to content

A RecyclerView which snaps to items, with nice visual effects

Notifications You must be signed in to change notification settings

IsaacPayne/Snappy-RecyclerView-Example

Repository files navigation

Snappy RecyclerView

A simple implementation of a RecyclerView which makes use of the SnapHelper class to make the RecyclerView snap the nearest item.

Also uses the distance from the center to fade out and scale each item on scroll.

Uses

  • Android Data Binding

Limitations

  • Currently only works in portrait
  • scrollToPosition is broken as it uses the the average size of an item and the first and last items are bigger than the rest

Future Work

  • Add a snappedToItem listener
  • Fix scrollToPosition, by manually calculating the offset

Screenshots

Sample screenshot

About

A RecyclerView which snaps to items, with nice visual effects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages