"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
Solution 1:
It's because you are trying to cast BitmapDrawable(first frame of animation) to AnimationDrawable. Try like this:
Drawable drawable = res.getDrawable(R.drawable.<your_animation_xml_file_name>);
Post a Comment for ""class Cast Exception" When Trying To Set Image Frames To Background"