The bouncing ball looks a little unnatural bouncing like that. Let's specify another interpolator that will make the bouncing action look a little bit more natural.
InteractiveBook.java. Add another import at the top of the file.
You might remember that we used one of these in the previous chapter. We want a bouncing action, so we should use a bouncing action, right? I'm not sure, let's try it and see if it works.
onCreate()method, and find the part where you were specifying parameters for the
ballBouncer. Add the highlighted line in the following block of code:
ballBouncer.setDuration(2000); ballBouncer.setRepeatMode(ValueAnimator.REVERSE); ...