1. Add subtags in the styles.xml file of values, as follows:
<style name="NoTitle" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="android:windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
</style>
2. In the manifest file AndroidManifest.xml, add the following references
android:theme="@style/NoTitle"
3. The final effect is as follows: