Relative Content

Tag Archive for kotlinandroid-fragmentsanimation

How to use Animations in Kotlin fragments

I am new to Kotlin programming and I am facing an issue with Kotlin fragments.
I want to use Animations when I click certain objects in my fragment, but I am not able to use them with the AnimationUtils.loadAnimation() function as its asking for the “context” and I am providing it the fragment.
Here is where I am getting the problem: