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 );