title: SwiperefreshLayout in Android
body: <p>i am using <strong><code>SwipeRefreshLayout</code></strong> in my below layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@color/homePageBackground"
    android:orientation="vertical" &gt;
  
  
  &lt;android.support.v4.widget.SwipeRefreshLayout
      android:id="@+id/swipeRefreshLayout_listView"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical" &gt;
  &lt;fragment
          android:id="@+id/announcementHomefragment"
          android:name="in.test.app.AnnouncementFragment"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" /&gt;
          &lt;ScrollView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="@color/homePageBackground" &gt;
  
              &lt;RelativeLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="15dp"
                  android:background="@color/homePageBackground" &gt;
  
                  &lt;TextView
                      android:id="@+id/newsTitle"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center"
                      android:layout_marginLeft="15dp"
                      android:layout_marginTop="5dp"
                      android:gravity="center"
                      android:text="@string/new_list"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/white"
                      android:textStyle="bold" /&gt;
  
                  &lt;fragment
                      android:id="@+id/newshomefragment"
                      android:name="in.test.app.NewsFragment"
                      android:layout_width="wrap_content"
                      android:layout_height="190dp"
                      android:layout_below="@id/newsTitle"
                      android:layout_marginTop="-15dp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/productTitle"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_below="@id/newshomefragment"
                      android:layout_gravity="center"
                      android:layout_marginLeft="15dp"
                      android:layout_marginTop="5dp"
                      android:gravity="center"
                      android:text="@string/product_in_home"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/white"
                      android:textStyle="bold" /&gt;
  
                  &lt;fragment
                      android:id="@+id/proCategoryhomefragment"
                      android:name="in.test.app.CategoryFragment"
                      android:layout_width="wrap_content"
                      android:layout_height="170dp"
                      android:layout_below="@id/productTitle"
                      android:layout_marginTop="-15dp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/trainingTitle"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_below="@id/proCategoryhomefragment"
                      android:layout_gravity="center"
                      android:layout_marginLeft="15dp"
                      android:layout_marginTop="2dp"
                      android:gravity="center"
                      android:text="@string/trainings_in_home"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/white"
                      android:textStyle="bold" /&gt;
  
                  &lt;fragment
                      android:id="@+id/trainingfragment"
                      android:name="in.test.app.TrainingFragment"
                      android:layout_width="match_parent"
                      android:layout_height="180dp"
                      android:layout_below="@id/trainingTitle"
                      android:layout_marginBottom="10dp"
                      android:layout_marginTop="-15dp" /&gt;
              &lt;/RelativeLayout&gt;
          &lt;/ScrollView&gt;
      &lt;/LinearLayout&gt;
  &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I pull down my <code>SwipeRefreshLayout</code> it is working, but as you can see in the above code I have a scroll view inside that. So when I am pulling down my scroll view, it goes down and half the images are not showing because it came down. When I am trying to pull up again my scroll view is not going up. Instead, <code>SwipeRefreshLayout</code> is getting call. What should i do?</p>
  
  <p>Please help me out.</p>