I'm working on an Android app where I need to hide the title/status/action bar in an activity. I looked around quite a bit, and tried some things, but none of them worked, just crashed when I ran the app. I'd prefer to do it through AndroidManifest.xml, rather than programmatically in onCreate(), 'cause I'm not very good with themes and styles and all that.
Asked
Active
Viewed 269 times
-1
-
Do you want the title/action to be hidden for all activities? – Kalel Wade Apr 17 '15 at 21:37
-
possible duplicate of http://stackoverflow.com/a/10318745/4270211 – ichthyocentaurs Apr 17 '15 at 22:05
-
possible duplicate of [How to disable action bar permanently](http://stackoverflow.com/questions/8456835/how-to-disable-action-bar-permanently) – Akshit Rewari Apr 18 '15 at 11:35
1 Answers
1
All you need to do is to edit your AppTheme properly. You find it in res/values/styles.xml
<style name="NoActionBar" parent="@android:style/Theme.Holo.Light">
<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
</style>
you can then use this as your activitys theme in the AndroidManifest.xml

Martin Golpashin
- 1,032
- 9
- 28
-
OK, thanks! That fixed it! (I also realized I accidentally extended ActionBarActivity in my main Activity, not just Activity. :/) Thanks! – weirdo16 Apr 17 '15 at 23:21