Home

Awesome

Android-DivergeView

仿美拍直播的点赞动画。

Project site: https://github.com/HomHomLin/Android-DivergeView.

效果图

p1

原理

使用贝塞尔曲线的自定义view。

使用

该项目有三种效果,分别位于项目的DivergeView、DivergeView2以及test库中,其中DivergeView为贝塞尔三次曲线效果,DivergeView2为贝塞尔二次曲线效果(也是与美拍直播最相似的效果),test为无限循环的发散礼物动画。

选择需要的项目,将项目下的DivergeView.java拷贝到自己的项目,因为项目比较简单,不提供gradle,范例代码参见demo。

Developed By

##License Copyright 2016 LinHongHong

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.