Android (3.0) Action Bar dont want to Go

后端 未结 5 1371
春和景丽
春和景丽 2020-12-15 13:09

I am working with XOOM and trying to hide action bar. So i follow the instruction did the following in manifest file:

uses-sdk android:minSdkVersion=\"11\" an

5条回答
  •  死守一世寂寞
    2020-12-15 13:58

    I came to exactly the same conclusion. If you can't make the ActionBar show on the screen it is most likely either :

    • window has no title; ActionBar is essentially a glorified title bar, thus no title= no ActionBar, although this is nowhere mentioned in the docs

    • you tried to call the getActionBar() method prior setting the content view in the activity. In this case, this method returns null. Again, nowhere mentioned in the docs, and if you try to construct/modify the ActionBar as a part of the custom view constructor, you are out of luck.

    More about my explorations of ActionBar in Honeycomb can be found on my blog here

提交回复
热议问题