ImageView img = (ImageView)findViewById(R.id.goodEffect);
BitmapDrawable frame0 = (BitmapDrawable)context.getResources().getDrawable(R.drawable.bp_score0);
BitmapDrawable frame1 = (BitmapDrawable)context.getResources().getDrawable(R.drawable.bp_score1);
BitmapDrawable frame2 = (BitmapDrawable)context.getResources().getDrawable(R.drawable.bp_score2);
BitmapDrawable frame3 = (BitmapDrawable)context.getResources().getDrawable(R.drawable.bp_score3);
BitmapDrawable frame4 = (BitmapDrawable)context.getResources().getDrawable(R.drawable.bp_score4);
BitmapDrawable frame5 = (BitmapDrawable)context.getResources().getDrawable(R.drawable.bp_score5);
BitmapDrawable frame6 = (BitmapDrawable)context.getResources().getDrawable(R.drawable.bp_score6);
BitmapDrawable frame7 = (BitmapDrawable)context.getResources().getDrawable(R.drawable.bp_score7);
BitmapDrawable frame8 = (BitmapDrawable)context.getResources().getDrawable(R.drawable.bp_score8);
BitmapDrawable frame9 = (BitmapDrawable)context.getResources().getDrawable(R.drawable.bp_score9);
int reasonableDuration = 250;
mframeAnimation = new AnimationDrawable();
mframeAnimation.setOneShot(false);
mframeAnimation.addFrame(frame0, reasonableDuration);
mframeAnimation.addFrame(frame1, reasonableDuration);
mframeAnimation.addFrame(frame2, reasonableDuration);
mframeAnimation.addFrame(frame3, reasonableDuration);
mframeAnimation.addFrame(frame4, reasonableDuration);
mframeAnimation.addFrame(frame5, reasonableDuration);
mframeAnimation.addFrame(frame6, reasonableDuration);
mframeAnimation.addFrame(frame7, reasonableDuration);
mframeAnimation.addFrame(frame8, reasonableDuration);
mframeAnimation.addFrame(frame9, reasonableDuration);
img.setBackgroundDrawable(mframeAnimation); <- 이걸 주석처리하면 애니메이션없이 실행은 됩니다
mframeAnimation.setVisible(true, true);
mframeAnimation.start();



