How do I remove the title bar in android studio?

后端 未结 24 1195
轮回少年
轮回少年 2020-12-04 08:03

In my app there is this title bar at the top where the overflow menu would be, but I don\'t need settings and only have one screen. When I change the theme like described in

24条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 08:50

    In AndroidManifest.xml of your application you'll find the android:theme for example set to @style/AppTheme

    Now go to styles.xml, find the style tag, make sure that name is set to AppTheme the same as in manifest and set parent to android:Theme.Holo.Light.NoActionBar (also do this in styles(v21) if you have it in your project)

    
    

提交回复
热议问题