Oct 8, 2013

[android] How to hide action bar

If you create a project, action bar will be shown by default.
Anyway, you can hide or show action bar in the run time.

hide:    getActionBar().hide(); 
show:  getActionBar().show(); 



This might be better:

final ActionBar actionBar = getActionBar();
actionBar.hide(); 




No comments:

Post a Comment