- Animation animation = AnimationUtils.loadAnimation(Context, R.anim.anim_slide_out_from_bottom);
- animation.setInterpolator(new
- DecelerateInterpolator()
- );
- animation.setAnimationListener(new Animation.AnimationListener()
- {
- @Override
- public void onAnimationStart (Animation animation){
- }
- @Overridepublic void onAnimationEnd (Animation animation){
- }
- @Override
- public void onAnimationRepeat (Animation animation){
- }
- }
- );
- xxxview.clearAnimation();
- xxxview.startAnimation(animation);
View动画的简单使用
最新推荐文章于 2023-08-04 17:56:07 发布