Setting Up the Action Bar tutorial in Android Atudio

306 views Asked by At

Theme.Holo is used in the tutorial http://developer.android.com/training/basics/actionbar/setting-up.html

I'm using Android Studio, and the Theme.AppCompat.Light.DarkActionBar is the default style used in the styles.xml

The emulator gives an error Unfortunately, Action Bar has stopped if I comment out AppCompat theme in styles.xml and add style name="AppTheme" parent="@android:style/Theme.Holo.Light.DarkActionBar

How can Android Studio be setup so that Holo is the default theme, or how can the theme be changed to match the tutorial?

1

There are 1 answers

1
Sarhad Salam On

Change the default code in styles.xml to:

<style name="AppTheme" parent="android:Theme.Holo.Light">

That does it right? Let me know.