Set start opacity then animate
- by Joelbitar
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.