android - Start Animation from zero visibility to full? -


i using startanimation method produce fadein effect on image. want fadein effect work after few seconds of delay, , before don't want image visible. cannot use setalpha method animation takes current state of image. should here?

imageview= (imageview)findviewbyid(r.id.imgfade);  fadeinanimation = animationutils.loadanimation(this, r.anim.fadein);  new handler().postdelayed(new runnable() {      @override      public void run() {         imageview.startanimation(fadeinanimation );      } }, 8000); 

put imageview.setvisibility(view.visible); after imageview.startanimation(fadeinanimation );


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -