title: How to integrate a floating action button into linear layout with toolbar
body: <p>I have the following list view to which I want to add a floating action button.</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="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"
      android:background="@drawable/background_serious" &gt;
      &lt;include layout="@layout/toolbar"/&gt;
  
      &lt;ListView android:id="@id/android:list"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:cacheColorHint="#00000000"&gt;
      &lt;/ListView&gt;
  
      &lt;android.support.design.widget.FloatingActionButton
          android:id="@+id/fab"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="end|bottom"
          android:layout_margin="@dimen/fab_margin"
          android:src="@drawable/ic_done" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>In the current form the button is not displayed at all.
  I tried changing <code>LinearLayout</code> to <code>CoordinatorLayout</code> as many examples feature it. But then I get an error:</p>
  
  <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{de.sudoq/de.sudoq.controller.menus.SudokuLoadingActivity}: android.view.InflateException: Binary XML file line #6: Error inflating class CoordinatorLayout
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
              ...
       Caused by: android.view.InflateException: Binary XML file line #6: Error inflating class CoordinatorLayout
              at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:757)
              ...
       Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.CoordinatorLayout" on path: DexPathList[[zip file "/data/app/de.sudoq-2/base.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]
              ...
  </code></pre>
  
  <p>I also tried <code>FrameLayout</code> but then the list goes over the toolbar(you can see the toolbar under transparent parts of list items, but they cover the toolbar, not the other way around)</p>