Refactor and generalize SpringAnimationHandler.
am: 5c83e7cdc5

Change-Id: I3fa69b3ab59badf589657a1dfc539481710e34b8