How to hide the title bar for an Activity in XML with existing custom theme

前端 未结 30 1674
误落风尘
误落风尘 2020-11-22 03:28

I want to hide the titlebar for some of my activities. The problem is that I applied a style to all my activities, therefore I can\'t simply set the theme to @android:

30条回答
  •  心在旅途
    2020-11-22 03:38

    For AppCompat, following solution worked for me:

    Add new theme style with no action bar in your styles.xml and set parent="Theme.AppCompat.NoActionBar".

    
    


    Now implement the same theme style to your splash screen activity in androidManifest.xml

     // apply splash them here 
    
            
                
                
            
    
    

    Here is result:

提交回复
热议问题