andkulikov / Transitions-Everywhere

Set of extra Transitions on top of Jetpack Transitions Library
Apache License 2.0
4.83k stars 486 forks source link

Overlay other layouts #76

Closed afiqiqmal closed 6 years ago

afiqiqmal commented 6 years ago

I have a conditions where need to show and hide several views. it display when button clicked. The problem is, i need to click several times to make it work.. how to fix this?

TransitionManager.beginDelayedTransition(form_ll);
switch (id) {
      case "MC":
           attachment.setVisibility(View.VISIBLE);
           spinnerModeRl.setVisibility(View.GONE);
           spinnerHdRl.setVisibility(View.GONE);
           break;
      case "WR":
            attachment.setVisibility(View.GONE);
            spinnerModeRl.setVisibility(View.GONE);
            spinnerHdRl.setVisibility(View.GONE);
            break;
      default:
            spinnerModeRl.setVisibility(View.VISIBLE);
            spinnerHdRl.setVisibility(View.GONE);
            attachment.setVisibility(View.GONE);
            break;
}

It seems like the views is overlay other view, on first click..

screenshot_2017-12-10-09-33-38-425_com iteractive bepunct

The second click, it back to original place

screenshot_2017-12-10-09-50-58-172_com iteractive bepunct

is it what im doing it wrong or its a bug? Please advise.

andkulikov commented 6 years ago

@afiqiqmal so have you found the reason?