@TargetApi(Build.VERSION_CODES.HONEYCOMB) protected void swipeView(View child,float deltaX,float deltaY){
  if (isFixedView(child)) {
    deltaX=deltaX / 4;
  }
  float deltaXAbs=Math.abs(deltaX);
  float fractionCovered=deltaXAbs / (float)child.getWidth();
  child.setTranslationX(deltaX);
  child.setAlpha(1.f - fractionCovered);
  if (deltaX > 0)   child.setRotationY(-15.f * fractionCovered);
 else   child.setRotationY(15.f * fractionCovered);
}

@ TargetApi ( Build . VERSION_CODES . HONEYCOMB ) protected void swipeView ( View child , float deltaX , float deltaY ) { if ( isFixedView ( child ) ) { deltaX = deltaX / 4 ; } float deltaXAbs = Math . abs ( deltaX ) ; float fractionCovered = deltaXAbs / ( float ) child . getWidth ( ) ; child . setTranslationX ( deltaX ) ; child . setAlpha ( 1.f - fractionCovered ) ; if ( deltaX > 0 ) child . setRotationY ( - 15.f * fractionCovered ) ; else child . setRotationY ( 15.f * fractionCovered ) ; }
swipe a view by moving distance
