How To Show and hide ActionBar with AppCompat v.7

前端 未结 9 1631
忘了有多久
忘了有多久 2020-11-27 16:06

I have a simple app that displays text.

The app starts with a main screen with a few options (ex. an info button that leads to info about the app, a browse button th

9条回答
  •  庸人自扰
    2020-11-27 16:25

    Extend you activity as AppCompatActivity and then use action bar as:-

    getSupportActionBar().hide();  // for hiding
    getSupportActionBar().show();  // for showing
    

提交回复
热议问题