Awesome Open Source
Awesome Open Source

FlutteringLayout

Download JitPack CI CircleCI API License Blog QQGroup

FlutteringLayout for Android 一个直播间点赞桃心飘动效果的控件。

Gif 展示

Image

引入

Maven:

<dependency>
  <groupId>com.king.view</groupId>
  <artifactId>flutteringlayout</artifactId>
  <version>1.1.1</version>
  <type>pom</type>
</dependency>

Gradle:

compile 'com.king.view:flutteringlayout:1.1.1'

Lvy:

<dependency org='com.king.view' name='flutteringlayout' rev='1.1.1'>
  <artifact name='$AID' ext='pom'></artifact>
</dependency>
如果Gradle出现compile失败的情况,可以在Project的build.gradle里面添加如下:(也可以使用上面的GitPack来complie)
    allprojects {
        repositories {
            //...
            maven { url 'https://dl.bintray.com/jenly/maven' }
        }
    }

示例

布局

    <com.king.view.flutteringlayout.FlutteringLayout
        android:id="@+id/flutteringLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginBottom="10dp"
        app:duration="3000"
        app:enter_duration="300"
        app:scale="1.0"/>

添加桃心代码

flutteringlayout.addHeart();

版本记录

v1.1.1:2019-10-25

  • 移除support依赖
  • 升级至Gradle至v5.4.1

v1.1.0:2017-4-11

  • 优化Heart起点位置

v1.0:2017-4-10

  • FlutteringLayout初始版本

赞赏

如果您喜欢FlutteringLayout,或感觉FlutteringLayout帮助到了您,可以点右上角“Star”支持一下,您的支持就是我的动力,谢谢 😃

您也可以扫描下面的二维码,请作者喝杯咖啡 ☕️

关于我

Name: Jenly

Email: jenly1314#gmail.com / jenly1314#vip.qq.com

CSDN: jenly121

博客园: jenly

Github: jenly1314

加入QQ群: 20867961


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
java (31,347
animation (1,050
live (101
room (88
bezier (34
like (20
floating (18