Android (3.0) Action Bar dont want to Go

后端 未结 5 1381
春和景丽
春和景丽 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:38

    you can hide the action bar (which will display in the top of the screen). If your activity is tab activity then use the following line after the setcontentview line

    getParent().getActionBar().hide(); 
    

    If it is a normal activity then use

    getActionBar().hide(); 
    

    And setting on manifest is also working for me, but only to the particular activity you can set like this not to application.

    android:theme="@android:style/Theme.Holo.NoActionBar"
    

提交回复
热议问题