title: Bottomsheet with moving Floating action buttons
body: <p>I want to use <a href="http://developer.android.com/reference/android/support/design/widget/BottomSheetBehavior.html?utm_campaign=android_launch_supportlibrary23.2_022216&amp;utm_source=anddev&amp;utm_medium=blog" rel="noreferrer">Bottom-sheet</a> from support library and two floating action buttons (FABS) as shows the pictures. The point is that I also want both FABS moving together with the bottom-sheet like the picture 1 and 2.
  What is the basic layout that I have to use and how to make the FABS to be sticky on bottom-sheet?</p>
  
  <p><a href="https://i.stack.imgur.com/k8reS.png" rel="noreferrer"><img src="https://i.stack.imgur.com/k8reS.png" alt="Picture 1"></a>
  <a href="https://i.stack.imgur.com/ohqdq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ohqdq.png" alt="Picture 2"></a></p>
  
  <p><strong>UPDATE</strong></p>
  
  <pre><code>&lt;LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:fitsSystemWindows="true"
  android:orientation="vertical"
  tools:context=".MainActivity"&gt;
  
  &lt;android.support.design.widget.AppBarLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="?attr/actionBarSize"
          android:background="?attr/colorPrimary"
          app:popupTheme="@style/AppTheme.PopupOverlay"/&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  
  
  &lt;android.support.design.widget.CoordinatorLayout
      android:id="@+id/main_content"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
        &lt;!-- my context here --&gt;
  
      &lt;/LinearLayout&gt;
  
        &lt;!-- bottomsheet --&gt;
      &lt;FrameLayout
          android:id="@+id/bottom_sheet"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="#ff0000"
          app:behavior_hideable="true"
          app:layout_behavior="android.support.design.widget.BottomSheetBehavior"&gt;
  
          &lt;include layout="@layout/navigation_info" /&gt;
  
      &lt;/FrameLayout&gt;
  
      &lt;!-- FABS --&gt;
  
      &lt;!-- wrap to primary fab to extend the height --&gt;
  
      &lt;LinearLayout
          android:id="@+id/primary_wrap"
          android:layout_width="wrap_content"
          android:layout_height="88dp"
          app:layout_anchor="@id/bottom_sheet"
          app:layout_anchorGravity="top|end"&gt;
  
          &lt;android.support.design.widget.FloatingActionButton
              android:id="@+id/primary"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
  
              android:layout_margin="@dimen/fab_margin"
              android:src="@android:drawable/ic_delete"/&gt;
      &lt;/LinearLayout&gt;
  
  
      &lt;!-- Pin secondary fab in the top of the extended primary --&gt;
      &lt;android.support.design.widget.FloatingActionButton
          android:id="@+id/secondary"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="top|end"
          android:layout_margin="16dp"
          android:src="@android:drawable/ic_dialog_email"
          app:layout_anchor="@+id/primary_wrap"
          app:layout_anchorGravity="top|end"/&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>Based on <a href="https://stackoverflow.com/users/4463401/ruan-lopes">Ruan_Lopes</a> answer.</p>
  
  <p>With this layout my FABS works as I want but I still think that I am not doing it very clear.</p>
  
  <p>I am wondering if its possible to do this with more official way.</p>