title: Layout not moving when its inside to SwipeRefreshLayout in android?
body: <p>I working with SwipeRefreshLayout. Here what my need is...
  Im using one Linearlayout inside SwipeRefreshLayout which is in "<strong>RED COLOR</strong>".
  when im trying to pull down that layout, that layout is not moving. Only its showing that refresh circular arrow, But i want to pull down that whole "<strong>Red color</strong>" layout. How to achieve this?</p>
  
  <p>Please find my sources for reference.</p>
  
  <p>Suggestion please....</p>
  
  <p><strong>mylayout.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="#000000"&gt;
  
  
  &lt;android.support.v4.widget.SwipeRefreshLayout
      android:id="@+id/swipeRefreshLayout_emptyView"
      android:layout_width="match_parent"
      android:layout_height="300dp"
      android:background="#ff0000"
      &gt;
  
      &lt;ScrollView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          &gt;
  
          &lt;LinearLayout
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
  
              android:gravity="center"
              &gt;
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Sample SwipeRefreshLayout"
                  android:layout_marginTop="50dp"
                  android:textColor="#ffffff" /&gt;
  
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  
  &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>MyClass.java</strong></p>
  
  <pre><code>public class MyClass extends Fragment implements SwipeRefreshLayout.OnRefreshListener {
  
  private SwipeRefreshLayout swipeLayout;
  
  @Nullable
  @Override
  public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
      View view = inflater.inflate(R.layout.mylayout,null);
  
  
      swipeLayout = (SwipeRefreshLayout) view.findViewById(R.id.swipeRefreshLayout_emptyView);
      onCreateSwipeToRefresh(swipeLayout);
  
  
      return  view;
  }
  
  private void onCreateSwipeToRefresh(SwipeRefreshLayout swipeLayout) {
  
      swipeLayout.setOnRefreshListener(this);
      swipeLayout.setColorSchemeColors(android.R.color.holo_green_dark,  android.R.color.holo_red_dark,
              android.R.color.holo_blue_dark,   android.R.color.holo_orange_dark);
  
  }
  
  
  @Override
  public void onRefresh() {
  
      try {
          Thread.sleep(2000);
      } catch (InterruptedException e) {
          e.printStackTrace();
      }
  }
  }
  </code></pre>