0
runtime-
ImageView couponImage = (ImageView) findViewById(R.id.couponImg);
couponImage.setBackgroundResource(R.drawable.coupon);
AnimationDrawable couponAnimation = (AnimationDrawable)
couponImage.getBackground();
couponAnimation.start();
から、このコードにエラーが発生します。 しかし、私が "AnimationDrawable couponAnimation"を使用しないと、Eclipseは不平を言う。