Android: how to hide ActionBar on certain activities

后端 未结 16 1939
遇见更好的自我
遇见更好的自我 2020-11-29 17:58

I\'ve developed a simple demo application with a splash screen a map and some regular screens.

I have an action bar at the top that contains a logo. It all looks fin

16条回答
  •  生来不讨喜
    2020-11-29 18:35

    This works in API 27

    In the styles.xml replace code to the following....

    
        
        
    
    

    Then in the files (eg. activity_list.xml) in which you do want to have a toolbar put the following code.

    
    

    If you have problems switch to linear layout (because that is what this code is tested on)

提交回复
热议问题