title: Android - SwipeRefreshLayout with empty textview
body: <p>I've implemented <code>SwipeRefreshLayout</code> into my app but it can only hold one direct child which should be the listview. I'm trying to figure out how to add an empty textview to the following working XML file:</p>
  
  <pre><code>&lt;android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/swipe_container"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
      &lt;ListView
          android:id="@+id/listViewConversation"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:dividerHeight="1dp" /&gt;
  
  &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
  </code></pre>
  
  <p>Wrapping it in a Linear/Relative layout makes it buggy because the listview will always update when you want to slide back up the listview. One way I can think of is doing this programmatically but I guess that's not the best option.</p>
  
  <p>You can learn how to implement it using this tutorial: <a href="http://antonioleiva.com/swiperefreshlayout/" rel="noreferrer">Swipe to refresh GUIDE</a></p>
  
  <p>So basically it all works fine but I would like to add an empty view that shows a message when the listview is empty.</p>