I want to implement scroll to refresh functionality with a listView. Also there are other view elements in the same layout file which are displayed if the list is empty. Her
Make your own implementation of SwipeRefreshLayout and override the canChildScrollUp in this way:
@Override public boolean canChildScrollUp() { if (scrollView != null) return scrollView.canScrollVertically(-1); return false; }
just replace with any subclass of ScrollView.