When I make a new project from android studio. New blank activity has title bar and floating icon. How to get rid of it when I'm getting a new blank activity. And how i make a real blank activity.
Asked
Active
Viewed 79 times
1 Answers
1
Use the "Empty Activity" template. That is as empty as you get from the new-project and new-activity wizards.
Or, do not have the wizard create a new activity for you, and just add it yourself.

CommonsWare
- 986,068
- 189
- 2,389
- 2,491
-
That's it :) @CommonsWare can you please take a look at my problem : http://stackoverflow.com/questions/35347872/admob-ad-not-displayed-error-2 – theapache64 Feb 11 '16 at 19:47
-
But empty activity also have a title bar. How i fix this? Is this a issue of my sdk? Why i can't simply get a blank activity. – Ishara Ruchiranga Feb 11 '16 at 19:53
-
@IsharaRuchiranga: "But empty activity also have a title bar" -- by default, all activities have an action bar. None of the templates avoids an action bar entirely, though the "Fullscreen Activity" one demonstrates hiding and showing an action bar. "How i fix this?" -- create your own activity from scratch. "Why i can't simply get a blank activity" -- because few developers need that, and the templates do not cover every scenario. – CommonsWare Feb 11 '16 at 19:57
-
Got it sir. Thank you for advice. – Ishara Ruchiranga Feb 11 '16 at 20:02