How do I remove the title bar in android studio?

后端 未结 24 1194
轮回少年
轮回少年 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:46

    To simply remove the title bar (which means the bar contains your app name) from an activity, I simply add below line to that activity in the manifests\AndroidManifest.xml:

    android:theme="@style/AppTheme.NoActionBar"
    

    It should now look like below

    
    

    Hope it'll be useful.

提交回复
热议问题