How to disable “pull to refresh” action and use only indicator?

From the documentation: If an activity wishes to show just the progress animation, it should call setRefreshing(true). To disable the gesture and progress animation, call setEnabled(false) on the view. So to show the animation: swiperefreshLayout.setEnabled(true); swiperefreshLayout.setRefreshing(true); And to hide the animation: swiperefreshLayout.setRefreshing(false); swiperefreshLayout.setEnabled(false);

SwipeRefreshLayout + ViewPager, limit horizontal scroll only?

I am not sure if you still have this issue but Google I/O app iosched solves this problem thusly: viewPager.addOnPageChangeListener( new ViewPager.OnPageChangeListener() { @Override public void onPageScrolled( int position, float v, int i1 ) { } @Override public void onPageSelected( int position ) { } @Override public void onPageScrollStateChanged( int state ) { enableDisableSwipeRefresh( state … Read more