How to disable pulltorefresh functionality for first time?
android, pull-to-refresh
Solution
I had same problem.
According to source, if view is disabled, it'll not eat touch event.
https://github.com/chrisbanes/ActionBar-PullToRefresh/blob/master/library/src/uk/co/senab/actionbarpulltorefresh/library/PullToRefreshLayout.java#L137
simply, you can do
mPullToRefreshLayout.setEnabled(false);
Problem
I'm using chrisbanes's Android-PullToRefresh in my app. I need to disable pulltorefresh functionality for first time fragment launch - when list is empty and items are downloading in background. In this case (list is empty) user can swipe down and progressbar with "Release to refresh" will shown. After loading all items I want to enable pulltorefresh functionality.. How?