Closed mianamiana closed 8 years ago
Code: TransitionSet set = new TransitionSet(). addTransition(new Fade(Fade.OUT)). addTransition(new ChangeBounds()). addTransition(new Fade(Fade.IN)) .setStartDelay(2000); TransitionManager.beginDelayedTransition((ViewGroup) myView.getParent(), set); myView.setVisibility(View.GONE );
myView also hide immediately
my bad. it's work
Code:
TransitionSet set = new TransitionSet(). addTransition(new Fade(Fade.OUT)). addTransition(new ChangeBounds()). addTransition(new Fade(Fade.IN)) .setStartDelay(2000); TransitionManager.beginDelayedTransition((ViewGroup) myView.getParent(), set); myView.setVisibility(View.GONE );
myView also hide immediately