HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Remove the ActionBar from Specific Activities (Or All Activities) - Android Studio Tutorial

243,342 views October 25, 2018 5:49

Watch on YouTube
ChannelCoding in Flow

Description from the creator

In this video we will learn, how to remove the default ActionBar either from all activities within an application or only from single activities. This is necessary for example if you want to implement the more flexible Toolbar into your app.
To remove the ActionBar from all activities, we can set the parent of the default AppTheme in the styles.xml file to "Theme.AppCompat.Light.NoActionBar" or "Theme.AppCompat.NoActionBar".
If we want to remove the ActionBar only from specific activities, we can create a child theme with the AppTheme as it's parent, set windowActionBar to false and windowNoTitle to true and then apply this theme on an activity level by using the android:theme attribute in the AndroidManifest.xml file.

Example code:
gist.github.com/codinginflow/97287bb1ae6c49a31f…

____________________
💻 Find the BEST programming tutorials on TutHub:
tuthub.io

⭐ Get my MVVM Caching Course now:
codinginflow.com/caching

❗ Subscribe to the channel:
youtube.com/c/codinginflo...

📨 Subscribe to the Coding in Flow newsletter:
codinginflow.com/newsletter

❓ Join our free developer community:
discord.gg/TSnMvmc

📣 Follow Coding in Flow on other sites:
Facebook: facebook.com/codinginflow
Instagram: instagram.com/codinginflow
TikTok: tiktok.com/@codinginflow
Twitter: twitter.com/codinginflow
Github: github.com/codinginflow

💰 Business requests, sponsoring, etc.: [email protected]

About this tutorial

Coding in Flow published this 5:49 video tutorial on October 25, 2018. It has been watched 243,342 times on YouTube.

Duration
5:49
Published
October 25, 2018
Views
243,342
Likes
3,538

Tags

Share

Further reading

  • Remove the ActionBar - Coding in Flow codinginflow.com

    If we want to remove the ActionBar only from specific activities, we can create a child theme with the AppTheme as it’s parent, set windowActionBar to false and windowNoTitle to true and then apply this theme on an acti…

  • java - Android: how to hide ActionBar on certain activities ... stackoverflow.com

    Beginning with Android 3.0 (API level 11), all activities that use the default theme have an ActionBar as an app bar. However, app bar features have gradually been added to the native ActionBar over various Android rele…

  • Hide or remove Action Bar on specific Activity | Android stackoverflow.com

    How I can remove Action Bar on specific activity not for all application, for example I have Sign Up activity and for this activity I want to remove Action Bar java android android-activity android-actionbar

This tutorial in other languages