getActionBar() returns null

前端 未结 24 1972
暗喜
暗喜 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:44

    I solve it by this changes:

    1. change in minifest android:theme="@android:style/Theme.Holo.Light" >
    2. add to class extends ActionBarActivity
    3. add import to class import android.support.v7.app.ActionBarActivity

提交回复
热议问题