public class ScrollingUtil
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
canChildScrollDown(android.view.View mChildView)
Whether it is possible for the child view of this layout to scroll down.
|
static boolean |
canChildScrollUp(android.view.View mChildView)
用来判断是否可以下拉
手指在屏幕上该方法才有效
|
static int |
getScreenHeight(android.content.Context context) |
static boolean |
isAbsListViewToBottom(android.widget.AbsListView absListView) |
static boolean |
isAbsListViewToTop(android.widget.AbsListView absListView) |
static boolean |
isRecyclerViewToBottom(android.support.v7.widget.RecyclerView recyclerView) |
static boolean |
isRecyclerViewToTop(android.support.v7.widget.RecyclerView recyclerView) |
static boolean |
isScrollViewOrWebViewToTop(android.view.View view) |
static boolean |
isScrollViewToBottom(android.widget.ScrollView scrollView) |
static boolean |
isViewGroupToBottom(android.view.ViewGroup viewGroup) |
static boolean |
isViewToBottom(android.view.View view,
int mTouchSlop) |
static boolean |
isViewToTop(android.view.View view,
int mTouchSlop) |
static boolean |
isWebViewToBottom(android.webkit.WebView webview,
int mTouchSlop) |
static void |
scrollAViewBy(android.view.View view,
int height) |
static void |
scrollToBottom(android.widget.AbsListView absListView) |
static void |
scrollToBottom(android.support.v7.widget.RecyclerView recyclerView) |
static void |
scrollToBottom(android.widget.ScrollView scrollView) |
static void |
scrollToBottom(android.view.View view) |
public static boolean canChildScrollUp(android.view.View mChildView)
public static boolean canChildScrollDown(android.view.View mChildView)
public static boolean isScrollViewOrWebViewToTop(android.view.View view)
public static boolean isViewToTop(android.view.View view,
int mTouchSlop)
public static boolean isViewToBottom(android.view.View view,
int mTouchSlop)
public static boolean isAbsListViewToTop(android.widget.AbsListView absListView)
public static boolean isRecyclerViewToTop(android.support.v7.widget.RecyclerView recyclerView)
public static boolean isWebViewToBottom(android.webkit.WebView webview,
int mTouchSlop)
public static boolean isViewGroupToBottom(android.view.ViewGroup viewGroup)
public static boolean isScrollViewToBottom(android.widget.ScrollView scrollView)
public static boolean isAbsListViewToBottom(android.widget.AbsListView absListView)
public static boolean isRecyclerViewToBottom(android.support.v7.widget.RecyclerView recyclerView)
public static void scrollAViewBy(android.view.View view,
int height)
public static void scrollToBottom(android.widget.ScrollView scrollView)
public static void scrollToBottom(android.widget.AbsListView absListView)
public static void scrollToBottom(android.support.v7.widget.RecyclerView recyclerView)
public static void scrollToBottom(android.view.View view)
public static int getScreenHeight(android.content.Context context)