private void openArrowAnimate(){ iv_arrow_down.animate().rotation(225).setDuration(380).setListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animator) { super.onAnimationEnd(animator); iv_arrow_down.setRotation(45); iv_arrow_down.setEnabled(true); } }); } private void closeArrowAnimate(){ iv_arrow_down.animate().rotation(-180).setDuration(380).setListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animator) { super.onAnimationEnd(animator); iv_arrow_down.setRotation(0); iv_arrow_down.setEnabled(true); } }); }
图标的旋转动画
最新推荐文章于 2022-07-05 22:00:00 发布