In the Google IO 2013, Google has announced a new version of the Support Library, which includes ViewDragHelper
class.
I saw the docs, but I couldn\'t find any
Here is a nice post about how to use ViewDragHelper
Here is a good example shows how ViewDragHelper is used. https://github.com/umano/AndroidSlidingUpPanel
Use ViewDragHelper.create()
method to create it. Use the shouldInterceptTouchEvent()
to determine if you should intercept the touch event from child views.
Use smootSlideViewTo()
method to move the child view within your customized view.