是否有滚动进度通知呢?
bobby-walle opened this issue · 1 comments
bobby-walle commented
是否有滚动进度通知呢,比如类似OnPageChangeListener?需要结合TabLayout
YvesCheung commented
adapter 中有各个进度的回调:
假如从页面【A】滑动下一个页面【B】,触发的回调将会是:
- canSlideTo(SlideDirection.Next)
- onCreateViewHolder(context, inflater) (如果是首次滑动)
- onBindView(viewHolder【B】, SlideDirection.Next)
- onViewDismiss(viewHolder【A】, SlideDirection.Next)
- onViewComplete(viewHolder【B】)
- finishSlide(SlideDirection.Next)
另外ui实现 SlidableUI接口 也有对应的回调