解决方法
使用视图的ClipBound属性
Rect localRect = view.getVisibileRect();// or you can assign any required rectangle. Rect rectFrom,rectTo; Rect rectFrom = new Rect(localRect),rectTo = new Rect(localRect); now adjust your both starting and ending rectangle according to requirement. Animator animator = ObjectAnimator.ofObject(shape,"clipBounds",new RectEvaluator(),rectFrom,rectTo); animator.start();