仿美拍直播的点赞动画。

Min SDK   9
Latest Commit   2016-05-18 05:20:11
License   

Github   https://github.com/HomHomLin/Android-DivergeView

         

Using app client to scan QR code to run Demo


...

HomHomLin
美柚
Xiamen

http://homhomlin.github.io/
Android Developer

         

Similarily...
IconSwitch
AnimShopButton A shopping cart button with a telescopic displacement rotation animation ...一个带伸缩位移旋转动画的购物车按钮
StateButton 一个可以用代码设置selector背景(按下去背景颜色更改,样式变化等等)的button, 再也不用写selector了
README

README.md

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.