Hiding Action Bar in Android Activity | Android Studio 2021 | 2 Different Methods

Hiding Action Bar in Android Activity | Android Studio 2021 | 2 Different Methods

ayush codes

3 года назад

557 Просмотров

This Video talks about Hiding the Action Bar in Android Studio.
There are two simple steps to hide Action Bar in Android Studio.

Step 1: We can hide the Action Bar using the styles.xml file just by changing our app's Style Theme to Theme.AppCompat.Light.NoActionBar this will remove the Action Bar.

Step 2: We can also hide the action bar by using the activity's java file by adding getSupportActionBar().hide(); in the onCreate Method of the java file. This will hide the Action Bar As soon as the app launches and onCreate method is called.

Like! Share! Subscribe!
---------------------------------------------------------------------------------------------------------
Tags
#hideactionbar #hidingactionbarandroid #android #androidproblems #androidstudio #java #androiddesigns #androiddevelopment #androidtech
Ссылки и html тэги не поддерживаются


Комментарии: