final Button fadingButton = (Button) findViewById(R.id.fadingButton);
if (fadingButton != null) {
mContainer.removeView(fadingButton);
mRoot.getOverlay().add(fadingButton);
fadingButton.animate().alpha(0).setDuration(1000).withEndAction(new Runnable() {
@Override
public void run() {
fadingButton.setAlpha(1);
mRoot.getOverlay().remove(fadingButton);
mContainer.addView(fadingButton);
}
});
}