getActionBar() returns null

前端 未结 24 1777
暗喜
暗喜 2020-11-22 13:31

I\'m having an odd problem. I am making an app with targetsdk 13.

In my main activity\'s onCreate method i call getActionBar() to setup my actionbar. T

24条回答
  •  遥遥无期
    2020-11-22 13:49

    go to the AndroidManifest.xml and replace

    android:theme="@style/AppTheme"

    by 
    

    android:theme="@android:style/Theme.Holo.Light.DarkActionBar"

提交回复
热议问题