View的拖动效果-ViewDragHelper

使用ViewDragHelper进行侧滑功能实现: 1.重写onLayout()方法,先进行摆放布局。 2.创建ViewDraghelper对象,并且设置能够边缘拖动 3.重写ViewDragHelper.Callback 4.要重写computeScroll()方法,因为在ViewDragHelper中使用Scroller。比如调用settleCapturedViewAt()方法的时候,里层的源
相关文章
相关标签/搜索