private void flingView(@NonNull final View view, final int position, final boolean flingToRight) {
    """
	Flings given {@link android.view.View} out of sight.
	
	@param view         the parent {@link android.view.View}.
	@param position     the position of the item in the {@link android.widget.ListAdapter} corresponding to the {@code View}.
	@param flingToRight {@code true} if the {@code View} should be flinged to the right, {@code false} if it should be flinged to the left.
    """
        if (mViewWidth < 2) {
            mViewWidth = mListViewWrapper.getListView().getWidth();
        }

        View swipeView = getSwipeView(view);
        ObjectAnimator xAnimator = ObjectAnimator.ofFloat(swipeView, TRANSLATION_X, flingToRight ? mViewWidth : -mViewWidth);
        ObjectAnimator alphaAnimator = ObjectAnimator.ofFloat(swipeView, ALPHA, 0);

        AnimatorSet animatorSet = new AnimatorSet();
        animatorSet.playTogether(xAnimator, alphaAnimator);
        animatorSet.setDuration(mAnimationTime);
        animatorSet.addListener(new FlingAnimatorListener(view, position));
        animatorSet.start();
    }
private void flingView(@NonNull final View view, final int position, final boolean flingToRight) {
        if (mViewWidth < 2) {
            mViewWidth = mListViewWrapper.getListView().getWidth();
        }

        View swipeView = getSwipeView(view);
        ObjectAnimator xAnimator = ObjectAnimator.ofFloat(swipeView, TRANSLATION_X, flingToRight ? mViewWidth : -mViewWidth);
        ObjectAnimator alphaAnimator = ObjectAnimator.ofFloat(swipeView, ALPHA, 0);

        AnimatorSet animatorSet = new AnimatorSet();
        animatorSet.playTogether(xAnimator, alphaAnimator);
        animatorSet.setDuration(mAnimationTime);
        animatorSet.addListener(new FlingAnimatorListener(view, position));
        animatorSet.start();
    }
private void flingView ( @ NonNull final View view , final int position , final boolean flingToRight ) { if ( mViewWidth < 2 ) { mViewWidth = mListViewWrapper . getListView ( ) . getWidth ( ) ; } View swipeView = getSwipeView ( view ) ; ObjectAnimator xAnimator = ObjectAnimator . ofFloat ( swipeView , TRANSLATION_X , flingToRight ? mViewWidth : - mViewWidth ) ; ObjectAnimator alphaAnimator = ObjectAnimator . ofFloat ( swipeView , ALPHA , 0 ) ; AnimatorSet animatorSet = new AnimatorSet ( ) ; animatorSet . playTogether ( xAnimator , alphaAnimator ) ; animatorSet . setDuration ( mAnimationTime ) ; animatorSet . addListener ( new FlingAnimatorListener ( view , position ) ) ; animatorSet . start ( ) ; }
Flings given {@link android.view.View} out of sight.

@param view         the parent {@link android.view.View}.
@param position     the position of the item in the {@link android.widget.ListAdapter} corresponding to the {@code View}.
@param flingToRight {@code true} if the {@code View} should be flinged to the right, {@code false} if it should be flinged to the left.
Flings given { @link android . view . View } out of sight .