How to hide and show Action Bar?

Action Bar – Hide and Show

To hide Action Bar, invoke hide() method using getSupportActionBar( ) [getActionBar( ) in case of minSDKVersion is 11 or higher] as shown below:
1getSupportActionBar().hide();
2// If your minSdkVersion is 11 or higher, instead use:
3//getActionBar().hide();
To show Action Bar, invoke show() method using getSupportActionBar( ) [getActionBar( ) in case of minSDKVersion is 11 or higher] as shown below:
1getSupportActionBar().show();
2// If your minSdkVersion is 11 or higher, instead use:
3//getActionBar().show();

Comments

Popular posts from this blog

Styling Bottom Navigation

Lottie Animation in Android

Set Up the AWS Mobile SDK for Android