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

前端 未结 30 1640
误落风尘
误落风尘 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:39

    The title bar can be removed in two ways as mentioned on the developer Android page:

    In the manifest.xml file:

    1. Add the following in application if you want to remove it for all the activities in an app:

      
      
    2. Or for a particular activity:

      
      

提交回复
热议问题