private void animateViewIfNecessary(final int position, @NonNull final View view, @NonNull final ViewGroup parent) {
    """
	Animates given View if necessary.
	
	@param position the position of the item the View represents.
	@param view     the View that should be animated.
	@param parent   the parent the View is hosted in.
    """
        Animator[] childAnimators;
        if (getDecoratedBaseAdapter() instanceof AnimationAdapter) {
            childAnimators = ((AnimationAdapter) getDecoratedBaseAdapter()).getAnimators(parent, view);
        } else {
            childAnimators = new Animator[0];
        }
        Animator alphaAnimator = ObjectAnimator.ofFloat(view, ALPHA, 0, 1);

        assert mViewAnimator != null;
        mViewAnimator.animateViewIfNecessary(position, view, AnimatorUtil.concatAnimators(childAnimators, new Animator[0], alphaAnimator));
    }
private void animateViewIfNecessary(final int position, @NonNull final View view, @NonNull final ViewGroup parent) {
        Animator[] childAnimators;
        if (getDecoratedBaseAdapter() instanceof AnimationAdapter) {
            childAnimators = ((AnimationAdapter) getDecoratedBaseAdapter()).getAnimators(parent, view);
        } else {
            childAnimators = new Animator[0];
        }
        Animator alphaAnimator = ObjectAnimator.ofFloat(view, ALPHA, 0, 1);

        assert mViewAnimator != null;
        mViewAnimator.animateViewIfNecessary(position, view, AnimatorUtil.concatAnimators(childAnimators, new Animator[0], alphaAnimator));
    }
private void animateViewIfNecessary ( final int position , @ NonNull final View view , @ NonNull final ViewGroup parent ) { Animator [ ] childAnimators ; if ( getDecoratedBaseAdapter ( ) instanceof AnimationAdapter ) { childAnimators = ( ( AnimationAdapter ) getDecoratedBaseAdapter ( ) ) . getAnimators ( parent , view ) ; } else { childAnimators = new Animator [ 0 ] ; } Animator alphaAnimator = ObjectAnimator . ofFloat ( view , ALPHA , 0 , 1 ) ; assert mViewAnimator != null ; mViewAnimator . animateViewIfNecessary ( position , view , AnimatorUtil . concatAnimators ( childAnimators , new Animator [ 0 ] , alphaAnimator ) ) ; }
Animates given View if necessary.

@param position the position of the item the View represents.
@param view     the View that should be animated.
@param parent   the parent the View is hosted in.
Animates given View if necessary .