Refactoring of animations in View and Viewgroup