Android ImageView追加動画

1490 ワード

1:
  animation.xml
  "http://schemas.android.com/apk/res/android"      android:oneshot= "false" >      "500" android:drawable= "@drawable/broadcast_actionbar_invisble" />      "500" android:drawable= "@drawable/broadcast_actionbar_visible" />
 
 
  image.setBackgroundResource(R.anim.animation);
 
  2:
  image.setImageResource(R.anim.animation); mAnimationDrawable = (AnimationDrawable) mProgressBar                          .getDrawable();                  mAnimationDrawable.start();
  mAnimationDrawable.stop();  
:https://www.cnblogs.com/bing11/p/3310400.html