From 01cfec863bfeb0430cb1abff684244712d2e4264 Mon Sep 17 00:00:00 2001 From: Anton Malinskiy Date: Tue, 28 Jul 2015 16:13:55 +0300 Subject: [PATCH] Closes Malinskiy/SuperRecyclerView#37 --- .../malinskiy/superrecyclerview/SuperRecyclerView.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/SuperRecyclerView/src/main/java/com/malinskiy/superrecyclerview/SuperRecyclerView.java b/SuperRecyclerView/src/main/java/com/malinskiy/superrecyclerview/SuperRecyclerView.java index 508c4c8..f833099 100644 --- a/SuperRecyclerView/src/main/java/com/malinskiy/superrecyclerview/SuperRecyclerView.java +++ b/SuperRecyclerView/src/main/java/com/malinskiy/superrecyclerview/SuperRecyclerView.java @@ -538,6 +538,16 @@ public View getEmptyView() { return mEmptyView; } + /** + * Animate a scroll by the given amount of pixels along either axis. + * + * @param dx Pixels to scroll horizontally + * @param dy Pixels to scroll vertically + */ + public void smoothScrollBy(int dx, int dy) { + mRecycler.smoothScrollBy(dx, dy); + } + public enum LAYOUT_MANAGER_TYPE { LINEAR, GRID,