xxxxxxxxxx
Modify your application AndroidManifest.xml as below
<application
android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen">
<application>
xxxxxxxxxx
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar" />
xxxxxxxxxx
requestWindowFeature(Window.FEATURE_NO_TITLE);
getSupportActionBar().hide();
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_main);
xxxxxxxxxx
change
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
to
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
xxxxxxxxxx
<style name=”Theme.GfgItemSelect” parent=”Theme.MaterialComponents.DayNight.NoActionBar”>