title: How to adjust the swipe down distance in SwipeRefreshLayout?
body: <p>I implemented SwipeRefreshLayout in my app. I need to change the height which has to be scrolled down to call onRefresh() method. Which method should I use to add a custom height ?</p>
  
  <p>Implementation of SwipeRefreshLayout </p>
  
  <pre><code>private SwipeRefreshLayout swipeLayout;
  </code></pre>
  
  <p>In oncreate </p>
  
  <pre><code>swipeLayout   = (SwipeRefreshLayout)view.findViewById(R.id.swipe_container);
  swipeLayout.setOnRefreshListener(this);
          swipeLayout.setColorScheme(android.R.color.holo_blue_dark, 
                  android.R.color.holo_green_dark, 
                  android.R.color.holo_purple, 
                  android.R.color.holo_orange_dark);   
          swipeLayout.setSoundEffectsEnabled(true);
  </code></pre>
  
  <p>Implementing an AsyncTask in onrefresh method </p>
  
  <pre><code>   @Override
  public void onRefresh() 
  {
      // Asynctask to perform some task  
  
  }
  </code></pre>