On the Google IO 2013, Google has announced new version of Support Library, which includes ViewDragHelper
class. I saw the docs, but I couldn't find any sample of usage this class.
For example, very typical situation: I have custom view, which extends FrameLayout and allows drag some of the View
inside. For exmaple, let's it would be Button. I override onTouchEvent()
and onInterceptTouchEvent()
within my custom view, and if button of the rect contains touch coordinates and this is not simple click, I start drag.
So, what I must to do with ViewDragHelper
to get that? The clicks to the Button should process correctly.