Set start opacity then animate

Posted by Joelbitar on Stack Overflow See other posts from Stack Overflow or by Joelbitar
Published on 2010-06-17T13:51:35Z Indexed on 2010/06/17 13:53 UTC
Read the original article Hit count: 264

Filed under:
|
|

I have two ImageView's in a FrameLayout of which one (the one on top) is to be animated.

I want it to fade in and continuously rotate, the animation works fine and looks like this: http://code.google.com/p/switchctrl/source/browse/trunk/android/res/anim/device_loading_fadein.xml

ImageView loading = (ImageView) v.findViewById(R.id.loading_anim);
Animation loading_animation = AnimationUtils.loadAnimation(getContext(), loading_animation_id);

loading.startAnimation(loading_animation);

I can not setAlpha on the loading image, if I do the animation does not quite work.

© Stack Overflow or respective owner

Related posts about android

Related posts about animation