public static ViewPropertyAnimator hideViewByScaleAndVisibility (final View v) {

        ViewPropertyAnimator propertyAnimator = v.animate().setStartDelay(DEFAULT_DELAY).setDuration(SHORT_DURATION)
                .scaleX(0).scaleY(0).withEndAction(new Runnable() {
                    @Override
                    public void run() {
                        v.setVisibility(View.GONE);
                    }
                });

        return propertyAnimator;
    }
Shows a view by scaling

@param v the view to be scaled

@return the ViewPropertyAnimation to manage the animation
app/src/main/java/com/rozdoum/socialcomponents/utils/AnimationUtils.java