public void setFab(FloatingActionButton fab) {
        ViewGroup.LayoutParams layoutParams = fab.getLayoutParams();
        if (layoutParams != null && layoutParams instanceof CoordinatorLayout.LayoutParams) {
            CoordinatorLayout.LayoutParams coLayoutParams = (CoordinatorLayout.LayoutParams) layoutParams;
            BottomNavBarFabBehaviour bottomNavBarFabBehaviour = new BottomNavBarFabBehaviour();
            coLayoutParams.setBehavior(bottomNavBarFabBehaviour);
        }
    }
Internal Method
<p>
used to set animation and
takes care of cancelling current animation
and sets duration and interpolator for animation

@param offset translation offset that needs to set with animation
common/src/main/java/com/sxjs/common/widget/bottomnavigation/BottomNavigationBar.java