There is an Activity . In Activity there is WelcomeFragment , with transparent StatusBar . I make it transparent in the onCreateView fragment:

 getActivity().getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); 

In the onCreateView following fragment I do:

 getActivity().getSupportActionBar().show(); getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); 

But due to the animation of the status bar change, the markup is displayed incorrectly. How to remove the animation?

    0