Skip to content

LeeTech/Gifts-Animation

Repository files navigation

Gifts-Animation

直播送礼物连击效果

1.Step

 <cn.lry.animation.guide.LeftGiftControlLayout
        android:id="@ id/giftLl"
        android:layout_width="match_parent"
        android:layout_height="300dp"
        android:layout_alignParentLeft="true"
        android:layout_centerVertical="true"
        android:gravity="center_vertical"
        android:orientation="vertical">


        <cn.lry.animation.guide.LeftGiftsItemLayout
            android:id="@ id/gift1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:visibility="invisible"
            app:left_gift_layout_index="0" />

        <cn.lry.animation.guide.LeftGiftsItemLayout
            android:id="@ id/gift2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="6dp"
            android:visibility="invisible"
            app:left_gift_layout_index="1" />
    </cn.lry.animation.guide.LeftGiftControlLayout>

2.Step

LeftGiftControlLayout giftLl = (LeftGiftControlLayout) findViewById(R.id.giftLl);
giftLl.loadGift(GiftModel.create("123", "安卓机器人", 1, "http://join.com", "123", "Lee123", "http://join.com"));

About

直播送礼物连击效果

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages