daimajia / AndroidViewAnimations

Cute view animation collection.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Animation not working in Kotlin

dominik686 opened this issue · comments

Hi! This is my code. I want to play an animation on the fab every time it is pressed but for some reason, it is not doing anything.

_binding!!.floatingActionButton.setOnClickListener{
            YoYo.with(Techniques.Shake)
                .duration(700)
                .repeat(5)
                .playOn(_binding!!.floatingActionButton)
        }