public static PropertyAction getHeaderPropertyAction(View header) { final PropertyAction headerAction = PropertyAction.newPropertyAction(header) .interpolator(new DecelerateInterpolator()) .translationY(-200) .duration(550) .alpha(0.4f) .build(); return headerAction; }
public static PropertyAction getFabPropertyAction(View fab) { final PropertyAction fabAction = PropertyAction.newPropertyAction(fab) .scaleX(0) .scaleY(0) .duration(750) .interpolator(new AccelerateDecelerateInterpolator()) .build(); return fabAction; }