Reputation: 7044
When I go from full screen Splash Activity to my next activity, status bar shows weird flickering behaviour.
I have tried this code before finishing the Splash Activity -
Handler handler = new Handler();
handler.post(new Runnable() {
@Override
public void run() {
SplashActivity.this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
}
});
Also my min API level is 19. so:
getWindow().setExitTransition(fade);
getWindow().setEnterTransition(fade);
this isn't helping either.
My Splash Activity has these style implemented in Manifest:
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
</style>
Upvotes: 1
Views: 1016
Reputation: 4448
This solution is for min SDK 21. Splash Activity has these style implemented in Manifest:
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
</style>
Upvotes: 0