Hey I would suggest you to not to play with the view. Its better to set an animation on the view and play with that animation object to performing all the actions. Just invisible the view on onTouchEvent and let the animation object work done for u. You can see the example of swipeToDismiss in list view https://github.com/47deg/android-swipelistview or any other swiping examples of top developers. Happy Coding!!
[New] I also done trick. I wanna make an swipe to unlock feature so I used a seekbar and customized it. It worked great or me.