i'm working on C# Xamarin.Android
GITHUB - jamesmontemagno/FloatingActionButton-for-Xamarin.Android
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..
This is how github code was. But today is not working
var listView = FindViewById<ListView>(Android.Resource.Id.list);
var fab = FindViewById<FloatingActionButton>(Resource.Id.fab);
fab.AttachToListView(listView);
My XML:
<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">
<android.support.v7.widget.RecyclerView
android:id="@+id/buildpizzaingredienti_cmListView"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</android.support.v4.widget.SwipeRefreshLayout>
<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" />