Skip to content

Animation not working in Kotlin #169

@dominik686

Description

@dominik686

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)
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions