-1

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.

Martin Golpashin
  • 1,032
  • 9
  • 28
weirdo16
  • 337
  • 5
  • 13

1 Answers1

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