title: How do you put a floating action button (FAB) above a ListView in a Fragment in xml?
body: <p>This is my XML but it complains that I have "two roots"..</p>
  
  <pre><code>&lt;ListView
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:fab="http://schemas.android.com/apk/res-auto"
      android:id="@android:id/list"
      style="@style/ListView"
      android:layout_width="match_parent"
      android:layout_height="match_parent"/&gt;
  
  &lt;android.support.design.widget.FloatingActionButton
      android:id="@+id/fab"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:src="@drawable/ic_add_white_48dp"
      android:layout_gravity="bottom|end"
      fab:elevation="6dp"
      fab:pressedTranslationZ="12dp"
      fab:backgroundTint="@color/accent"/&gt;
  </code></pre>
  
  <p>If I wrap them both in another root such as RelativeLayout or FrameLayout my app crashes...</p>
  
  <blockquote>
    <p>Caused by: java.lang.ClassCastException: android.widget.FrameLayout
    cannot be cast to android.widget.ListView</p>
  </blockquote>
  
  <p>My ListView is populated by an adapter in my Fragment like so...</p>
  
  <pre><code>ListView mListView = (ListView) inflater.inflate(R.layout.main_list_fragment, container, false);
  
  FloatingActionButton myFab = (FloatingActionButton) mListView.findViewById(R.id.fab);
  myFab.setOnClickListener(new View.OnClickListener() {
    public void onClick(View v) {
      //// TODO: 23/09/15
    }
  });
  
  int[] to = new int[]{R.id.item};
  String[] columns = new String[]{"name"};
  listAdapter = new CustomAdapter(this.getActivity(), null, columns, to);
  this.setListAdapter(listAdapter);
  </code></pre>
  
  <p>How do I structure my XML so that I have my FAB floating above the ListView?</p>