Advertisement
Guest User

Untitled

a guest
Sep 9th, 2017
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1.     private void showProgress(boolean visible)
  2.     {
  3.         // show pull to refresh progress bar
  4.         SwipeRefreshLayout contentSwipeRefreshLayout = (SwipeRefreshLayout) mRootView.findViewById(R.id.container_content_swipeable);
  5.         SwipeRefreshLayout offlineSwipeRefreshLayout = (SwipeRefreshLayout) mRootView.findViewById(R.id.container_offline_swipeable);
  6.         SwipeRefreshLayout emptySwipeRefreshLayout = (SwipeRefreshLayout) mRootView.findViewById(R.id.container_empty_swipeable);
  7.  
  8.         contentSwipeRefreshLayout.setRefreshing(visible);
  9.         offlineSwipeRefreshLayout.setRefreshing(visible);
  10.         emptySwipeRefreshLayout.setRefreshing(visible);
  11.  
  12.         if(!WebViewAppConfig.PULL_TO_REFRESH)
  13.         {
  14.             contentSwipeRefreshLayout.setEnabled(false);
  15.             offlineSwipeRefreshLayout.setEnabled(false);
  16.             emptySwipeRefreshLayout.setEnabled(false);
  17.         }
  18.  
  19.         mProgress = visible;
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement