Jonas Otto Jonas Otto - 5 months ago 17
Android Question

How do I remove the title bar in android studio?

In my App there is this title bar at the top where the overflow menu would be, but i dont need settings and only have one screen.
When i change the theme like described in many other questions i get the old 2.2 theme. I want to have the modern Theme just without the bar at the top.

Answer
this.requestWindowFeature(Window.FEATURE_NO_TITLE);

works in onCreate() when put before setContentView() is invoked.

otherwise it crashes

Comments