title: Xamarin.Android Attach Fab Button to RecyclerView
body: <p>i'm working on <strong>C# Xamarin.Android</strong></p>
  
  <p><a href="https://github.com/jamesmontemagno/FloatingActionButton-for-Xamarin.Android" rel="nofollow noreferrer">GITHUB - jamesmontemagno/FloatingActionButton-for-Xamarin.Android</a></p>
  
  <p>this library is now deprecated, and i don't find how to attach my fab button to recyclerview: when is scroll up or down i want that the fab button appears and disappears..</p>
  
  <p>This is how github code was. But today is not working</p>
  
  <pre><code>var listView = FindViewById&lt;ListView&gt;(Android.Resource.Id.list);
  var fab = FindViewById&lt;FloatingActionButton&gt;(Resource.Id.fab);
  fab.AttachToListView(listView);
  </code></pre>
  
  <p>My XML:</p>
  
  <pre><code>    &lt;android.support.v4.widget.SwipeRefreshLayout
          android:id="@+id/swipe_refresh"
          android:layout_width="match_parent"
          android:layout_marginTop="100dp"
          android:layout_height="match_parent"
          android:layout_below="@+id/buildpizzaingredienti_toolbar"&gt;
          &lt;android.support.v7.widget.RecyclerView
              android:id="@+id/buildpizzaingredienti_cmListView"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" /&gt;
      &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
      &lt;android.support.design.widget.FloatingActionButton
          android:id="@+id/fab"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom|right"
          android:layout_alignParentBottom="true"
          android:layout_alignParentRight="true"
          android:layout_margin="16dp"
          android:src="@drawable/ic_next"
          app:backgroundTint="#4A8E53" /&gt;
  </code></pre>