Good afternoon, there is a need in the application to clean up on some forms of ActionBar, how to do it programmatically? wanted ActionBar actionBar = getActionBar (); - the application crashes with an error, (Android 2.3.4) found another option this.requestWindowFeature (Window.FEATURE_NO_TITLE); - does not remove the application title. How can I remove the name of the action on the form?
2 answers
The error occurs because getActionBar()
is available from API 11. It is better to use SupportLibrary and clean up as follows:
ActionBar actionBar = getSupportActionBar(); actionBar.hide();
- Super! Everything works fine, THANKS !!! - Sesh911
- There remains a little noticeable trace from the ActionBar .. how is it really right to remove it? - Chekist
|
If you need support for 2.3, then use SupportLibrary, and better ActionBarSherlock .
|