This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.
So basically I want to remove the status bar of my app and I’ve found no solution. I don’t want to make my app fullscreen I just want that part to be transparent and have more space for my app. I tried changing the color of the status bar to transparent but nothing works. Any help would be appreciated! I will attach a photo with the part that I want to remove to be more specific.
if you don’t want to make your app full screen, you should make the status bar transparent. So add this line to your theme.xml file:
Therefore, your theme.xml should be something like this:
<resources> <style name="Theme.MyApp" parent="android:Theme.Material.Light.NoActionBar"> <item name="android:windowTranslucentStatus">true</item> </style> </resources>
Answered By – Mohammad Derakhshan