i think that the problem may be that View.GONE
does not wait until the animation slideDown
is finished (so you cant see it)... try to put it like
slideDown .setAnimationListener(new AnimationListener(){
@Override
public void onAnimationStart(Animation animation){}
@Override
public void onAnimationRepeat(Animation animation){}
@Override
public void onAnimationEnd(Animation animation){
layout.setVisibility(View.GONE);
}
});
layout.startAnimation(slideDown);