I'm trying to make it so that one of the ImageViews in my activity undergoes a spinning animation where it accelerates quickly and slowly spins to a stop, as if friction is causing it to slow to a stop. I have a good function for this, but I do not know how to make it so that AccelerateDecelerateInterpolator uses this function.
So far my code for this is:
AccelerateDecelerateInterpolator anim = new AccelerateDecelerateInterpolator();
float deg = image.getRotation() + 360F;
image.animate().rotation(deg).setInterpolator(anim);
I have seen another thread for this, but I am not quite sure how to implement the code in the solutions as I am still fairly new. Thanks!