title: Multiple Buttons in FloatingActionButton library
body: <p>Hi I an trying to implement [FloatingActionButton][1] Library by makovkastar. (As it is backward compatible. It works fine with single FAB, but when 2 Buttons are added, the "List" seems to get attached to only one buttons. </p>
  
  <p><strong>fragment_listview.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
               xmlns:fab="http://schemas.android.com/apk/res-auto"
               android:layout_width="match_parent"
               android:layout_height="match_parent"&gt;
  
      &lt;ListView
          android:id="@android:id/list"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:cacheColorHint="@android:color/transparent"
          android:headerDividersEnabled="false"/&gt;
  
      &lt;com.melnykov.fab.FloatingActionButton
          android:id="@+id/fab"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom|right"
          android:layout_margin="16dp"
          android:src="@drawable/ic_add_white_24dp"
          fab:fab_colorNormal="@color/accent"
          fab:fab_colorPressed="@color/accent_pressed"
          fab:fab_colorRipple="@color/ripple"/&gt;
  
      &lt;com.melnykov.fab.FloatingActionButton
          android:id="@+id/fab2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom|left"
          android:layout_margin="16dp"
          android:src="@drawable/ic_add_white_24dp"
          fab:fab_colorNormal="@color/accent"
          fab:fab_colorPressed="@color/accent_pressed"
          fab:fab_colorRipple="@color/ripple"/&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p><strong>MainActivity ListViewFragment Class</strong></p>
  
  <pre><code>public static class ListViewFragment extends Fragment {
  
          @SuppressLint("InflateParams")
          @Override
          public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
              View root = inflater.inflate(R.layout.fragment_listview, container, false);
  
              ListView list = (ListView) root.findViewById(android.R.id.list);
              ListViewAdapter listAdapter = new ListViewAdapter(getActivity(),
                      getResources().getStringArray(R.array.countries));
              list.setAdapter(listAdapter);
  
              FloatingActionButton fab = (FloatingActionButton) root.findViewById(R.id.fab);
              fab.attachToListView(list);
  
              FloatingActionButton fab2 = (FloatingActionButton) root.findViewById(R.id.fab2);
              fab2.attachToListView(list);
  
  
  
              return root;
          }
  </code></pre>
  
  <p>This is same code sample provided in <a href="https://github.com/makovkastar/FloatingActionButton" rel="nofollow noreferrer">that library</a>:</p>
  
  <p>When the list is scrolled, only one button (<strong>fab2</strong> in this case) becomes invisible when scrolled down. I want both the buttons to react to scroll.</p>
  
  <p>Any idea to anyone how this can be done?</p>
  
  <p>Thanks in advance.</p>