title: SwipeRefreshLayout: Swipe progress animation
body: <p>I'm quite new to android and I'm exploring the sample code on google website. The code I'm on currently is the SwipeRefreshLayout: <a href="http://developer.android.com/samples/SwipeRefreshLayoutBasic/index.html" rel="nofollow noreferrer">http://developer.android.com/samples/SwipeRefreshLayoutBasic/index.html</a></p>
  
  <p>In the code, we see the SwipeRefreshLayout being executed for a listview, so in other words, if you drag down the list view, the method is triggered and the listview refreshes itself.</p>
  
  <pre><code>&lt;android.support.v4.widget.SwipeRefreshLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/swiperefresh"
        android:layout_width="match_parent"
        android:layout_height="match_parent"&gt;
  
      &lt;ListView
            android:id="@android:id/list"
            android:layout_width="match_parent"
            android:layout_height="match_parent" /&gt;
  
  &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
  </code></pre>
  
  <p>What is confusing me is that there is no layout in the code for the progress animation bar that gets displayed at the top of the listview when you drag it down. Do you think that the SwipeRefreshLayout automatically generates a progress animation bar when you drag it down without requiring the user to specify any layout in xml for it? </p>
  
  <p>For example, if one wants to put padding at both ends of the progress animation bar, so that the animation doesn't touch the ends of the screen when you refresh, how would one do it?</p>
  
  <p>The <a href="https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html" rel="nofollow noreferrer">https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html</a> doesn't really say anything about it.</p>