getActionBar() returns null

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

    android.support.v7.app.ActionBar actionBar = getSupportActionBar();

    works pretty quickly

提交回复
热议问题