Skip to content

Instantly share code, notes, and snippets.

View iC00kScripts's full-sized avatar
🚀
World class in a bit!!

Funsho Arashi iC00kScripts

🚀
World class in a bit!!
View GitHub Profile
import android.support.v7.widget.RecyclerView;
public class RecyclerViewSwipeListener extends RecyclerView.OnFlingListener {
private static final int SWIPE_VELOCITY_THRESHOLD = 2000;
boolean mIsScrollingVertically;
// change swipe listener depending on whether we are scanning items horizontally or vertically
RecyclerViewSwipeListener(boolean vertical) {