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