unfortunately there's no ready library or functionality to achieve that. But there're good open library that you can adapt.
My suggestion is to check SwipeRefreshLayout
, it's on the Android support library.
This ViewGroup support a swipe from the top to give a callback, you probably can adapt it to implement a bottom swipe.
docs: https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html
source code:
https://android.googlesource.com/platform/frameworks/support/+/refs/heads/master/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
edit:
alternatively, to implement a load more
function with scroll listener is relatively easy, it's just a simple OnScrollListener
with the following code:
private long lastRequestTime = 0;
public void onScroll (AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount){
if (((firstVisibleItem+visibleItemCount) > totalItemCount - 4) &&
(lastRequestTime + 1000 < System.currentTimeMillis())) {
lastRequestTime = System.currentTimeMillis();
// load more ...
}
}