android.support.v4.widget.ListViewCompat Java Examples
The following examples show how to use
android.support.v4.widget.ListViewCompat.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: QRefreshLayout.java From QRefreshLayout with MIT License | 5 votes |
/** * 目标是否可以向下滚动 * * @return */ private boolean canChildScrollDown() { if (viewTarget instanceof ListView) { return ListViewCompat.canScrollList((ListView) viewTarget, -1); } return viewTarget.canScrollVertically(-1); }
Example #2
Source File: QRefreshLayout.java From QRefreshLayout with MIT License | 5 votes |
/** * 目标是否可以向上滚动 * * @return */ private boolean canChildScrollUp() { if (viewTarget instanceof ListView) { return ListViewCompat.canScrollList((ListView) viewTarget, 1); } return viewTarget.canScrollVertically(1); }