首先声明,该效果并不是用动画实现的,而是用自定义View实现的,在onDraw方法里面调用invalidate()函数,实现气泡上升效果 气泡类:
解决了36楼问题:楼主 ,跑了下DEMO, 屏幕关闭后线程还在跑,但是CANVAS不刷新了,重新亮屏后所有的气泡挤在一起,时间一长会OOM吧 |
*滑动验证:
|
按住左边滑块,拖动完成上方拼图
|
---|
-
BubbleLayout.gif (1.16 MB, 下载次数: 149)
-
1.38 MB, 下载次数: 753