How to hide action bar before activity is created, and then show it again?
        Posted  
        
            by 
                Ilya Izhovkin
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ilya Izhovkin
        
        
        
        Published on 2011-12-14T06:24:38Z
        Indexed on 
            2012/09/24
            21:37 UTC
        
        
        Read the original article
        Hit count: 263
        
I need to implements splash screen in my honeycomb app. I use this code in activity's onCreate to show splash:
setContentView(R.layout.splash);
getActionBar().hide();
and this code to show main UI after some time:
setContentView(R.layout.main);
getActionBar().show();
But before onCreate is called and splash appears, there is small amount of time when action bar shown.
How can I made it not to show?
I tried to apply theme to activity without action bar:
<item name="android:windowActionBar">false</item>
but in that case getActionBar() always returns null and I found no way to show it again.
© Stack Overflow or respective owner