How to Hide Toolbar ActionBar Android Java

To hide the toolbar or ActionBar in Java, use the below code

getSupportActionBar().hide();

To show the toolbar or ActionBar, use this

getSupportActionBar().show();

Remember to use appropriate themes, or it might show Runtime errors.




, ,

Post navigation

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.