android studio remove header code example

Example 1: android studio removing title bar

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

Example 2: remove header visual studio android

[Activity(Label = "@string/app_name", Theme = "@style/Theme.AppCompat.Light.NoActionBar", MainLauncher = true)]

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"