title: SwipeRefreshLayout can host only one direct child
body: <p>I added a "pull to refresh" to my listView, i also wanted to add an empty view when the list is empty - Now i got this error. How can i make this work? if im positioning a view outside of the swipeRefresh and then add it as the emptyView it will work. So how do i so it with an outer xml file .. ?</p>
  
  <p>The xml code:</p>
  
  <pre><code>        &lt;android.support.v4.widget.SwipeRefreshLayout
          android:id="@+id/swipeRefreshLayout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_alignParentLeft="true"
          android:layout_alignParentTop="true" &gt;
  
  
          &lt;ListView
              android:id="@android:id/list"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_alignParentLeft="true"
              android:layout_alignParentTop="true"
              android:clipToPadding="false"
              android:paddingBottom="@dimen/inbox_vertical_margin" &gt;&lt;/ListView&gt;
  
  
  &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
  </code></pre>
  
  <p>onCreateView:</p>
  
  <pre><code>View rootView = inflater.inflate(R.layout.fragment_inbox, container,
          false);
  
  View empty = inflater.inflate(R.layout.empty_message_list, container,
          false);
  ListView mListView = (ListView) rootView
          .findViewById(android.R.id.list);
  ((ViewGroup) mListView.getParent()).addView(empty);
  TextView textViewToChange = (TextView) empty
          .findViewById(R.id.welcomeMessage);
  
  textViewToChange.setText("YO "
          + ParseUser.getCurrentUser().getString(
                  ParseConstants.KEY_PRESENTING_USERNAME)
          + "!  bad news.. :(");
  mListView.setEmptyView(empty);
  
  mSwipeRefreshLayout = (SwipeRefreshLayout) rootView
          .findViewById(R.id.swipeRefreshLayout);
  mSwipeRefreshLayout.setOnRefreshListener(mOnRefreshListener);
  mSwipeRefreshLayout.setColorScheme(R.color.swipeRefresh1,
          R.color.swipeRefresh2, R.color.swipeRefresh3,
          R.color.swipeRefresh4);
  
  return rootView;
  </code></pre>