“Class Cast Exception” when trying to set image frames to background
问题 I am trying to make my RelativeLayout background image animate-able by trying to set number of image frames. Here is how I set the animation private View fullView; fullView = (View)findViewById(R.id.fullView); Resources res = getResources(); Drawable drawable = res.getDrawable(R.drawable.eng_anim_1); drawable.setAlpha(100); fullView.setBackgroundDrawable(drawable); AnimationDrawable progressAnimation = (AnimationDrawable) fullView.getBackground(); progressAnimation.start(); Here is my 'list