I have implemented floating action with list item and setting elevation from layout and run time on bind data as well. Then following issues occur:
- fab elevation showing on first item only that is from xml resource I think.
setElevation()
not working run time.fab show()/hide()
also not working with scale animation.
xml code is here:
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab_btn_video"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/parentLayout"
android:layout_marginEnd="@dimen/fab_margin"
android:layout_marginRight="@dimen/fab_margin"
android:src="@drawable/ic_av_videocam"
app:elevation="@dimen/fab_shadow"
tools:targetApi="lollipop" />