android studio how to remove top bar code example

Example 1: android studio removing title bar

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar" />

Example 2: how to remove title bar android studio

change
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
to
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

Example 3: android studio make title disappear

If you are using Android Studio, go to the .xml located below:
res/values/themes/themes.xml
You will find two themes.xml, the one of those will be the night setting
Open those .xml files and in the node named style change the value of the 
parent attribute to:
"Theme.MaterialComponents.DayNight.NoActionBar"

Tags:

Java Example