Instead of a fab, I put an image, and I want this image to disappear at the end of the list as a fab. Even better, it works like in ScrollAwareFABBehavior with animation R.anim.design_fab_out and R.anim.design_fab_in
<?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:fitsSystemWindows="true"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ListView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/lv_news" android:dividerHeight="3dp" android:layout_gravity="center_horizontal" android:layout_below="@+id/linearLayout" /> </LinearLayout> <ImageView android:id="@+id/fab" android:layout_width="60dp" android:layout_height="60dp" android:layout_gravity="bottom|right" android:layout_marginBottom="20dp" android:layout_marginRight="20dp" /> </android.support.design.widget.CoordinatorLayout >