public class OverScrollDecoratorHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ORIENTATION_HORIZONTAL |
static int |
ORIENTATION_VERTICAL |
| Constructor and Description |
|---|
OverScrollDecoratorHelper() |
| Modifier and Type | Method and Description |
|---|---|
static IOverScrollDecor |
setUpOverScroll(android.widget.GridView gridView) |
static IOverScrollDecor |
setUpOverScroll(android.widget.HorizontalScrollView scrollView) |
static IOverScrollDecor |
setUpOverScroll(android.widget.ListView listView) |
static IOverScrollDecor |
setUpOverScroll(RecyclerView recyclerView,
int orientation)
Set up the over-scroll effect over a specified
RecyclerView view. |
static IOverScrollDecor |
setUpOverScroll(android.widget.ScrollView scrollView) |
static IOverScrollDecor |
setUpOverScroll(ViewPager viewPager) |
static IOverScrollDecor |
setUpStaticOverScroll(android.view.View view,
int orientation)
Set up the over-scroll over a generic view, assumed to always be over-scroll ready (e.g.
|
public static final int ORIENTATION_VERTICAL
public static final int ORIENTATION_HORIZONTAL
public static IOverScrollDecor setUpOverScroll(RecyclerView recyclerView, int orientation)
RecyclerView view.
LinearLayoutManager,
GridLayoutManager and StaggeredGridLayoutManager) are currently supported
by this convenience method.recyclerView - The view.orientation - Either ORIENTATION_HORIZONTAL or ORIENTATION_VERTICAL.public static IOverScrollDecor setUpOverScroll(android.widget.ListView listView)
public static IOverScrollDecor setUpOverScroll(android.widget.GridView gridView)
public static IOverScrollDecor setUpOverScroll(android.widget.ScrollView scrollView)
public static IOverScrollDecor setUpOverScroll(android.widget.HorizontalScrollView scrollView)
public static IOverScrollDecor setUpStaticOverScroll(android.view.View view, int orientation)
view - The view.orientation - One of ORIENTATION_HORIZONTAL or ORIENTATION_VERTICAL.public static IOverScrollDecor setUpOverScroll(ViewPager viewPager)