By clicking the dismiss button, the overlay gets smaller and removed and after this, the full overly shows up and then fades, you can notice this by screen recording and playing it in slow motion.
I think this is because, you animateOut the overlay and then set the visibility to gone as well.
public void animateOut() {
this.mAnimationFactory.animateOutView(this, this.mTarget.getPoint(), this.mFadeDurationInMillis, new AnimationEndListener() {
public void onAnimationEnd() {
DescriptionOverlayView.this.setVisibility(4);
****DescriptionOverlayView.this.removeFromWindow();****
}
});
}
By clicking the dismiss button, the overlay gets smaller and removed and after this, the full overly shows up and then fades, you can notice this by screen recording and playing it in slow motion.
I think this is because, you animateOut the overlay and then set the visibility to gone as well.