最近部门搞活动需要抽奖,我参考了一下网上的3D滚动控件demo:https://github.com/weidongjian/androidWheelView,写了一个抽奖效果的demo,效果如下:
主要是根据动画效果的需要改变LoopView的totalScrollY的值,再调用LoopView的invalidate()就可以了。
之前的demo地址https://github.com/simon003/LottoDemo已失效
最近部门搞活动需要抽奖,我参考了一下网上的3D滚动控件demo:https://github.com/weidongjian/androidWheelView,写了一个抽奖效果的demo,效果如下:
主要是根据动画效果的需要改变LoopView的totalScrollY的值,再调用LoopView的invalidate()就可以了。
之前的demo地址https://github.com/simon003/LottoDemo已失效