splash screen application and hide action bar

后端 未结 5 1101
夕颜
夕颜 2020-12-08 07:26

I\'m trying to figure out how is it possible to hide the action bar for a splash screen activity. I did something which hide my action bar on my splash screen, but there is

5条回答
  •  情深已故
    2020-12-08 08:06

    why not add to the manifest the theme of the first activity to exclude the action bar, and maybe even the notification bar?

    something like:

    
        
            
                
    
                
            
        
     ...
    

    This should work if you extend the normal Activity class.

    If your Activity extends AppCompatActivity instead, use this theme for example:

      
    

    meaning :

     
        ...
    

    BTW, the reason you have the action bar is because you have set the default theme to have it, in the application tag, so it's not an activity before yours, it's really your own splash activity.

提交回复
热议问题