Remove the title text from the action bar in one single activity

前端 未结 4 578
囚心锁ツ
囚心锁ツ 2020-12-18 12:14

I added an action bar with a dropdown menu to my activity but it also shows the application name.

Each of my activities has an action bar and each of them use the th

4条回答
  •  粉色の甜心
    2020-12-18 13:04

    The above proposed solutions still show the title for a brief moment before making it invisible. I use the following which I believe is the best way to achieve this:

    Simple disable app_name in the activity declaration in the Manifest. This way it will never show for the activity where you don't want it to appear:

     
            
                
    
                
            
        
    

提交回复
热议问题