ViewDragHelper: how to use it?

后端 未结 2 1828
夕颜
夕颜 2020-12-25 15:22

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

相关标签:
2条回答
  • 2020-12-25 15:29

    Here is a nice post about how to use ViewDragHelper

    • each-navigation-drawer-hides-a-viewdraghelper
    0 讨论(0)
  • 2020-12-25 15:47

    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.

    0 讨论(0)
提交回复
热议问题