A AndroidMadhu Active Member Licensed User Apr 22, 2021 #1 Hello I am getting a white action bar while opening the splash screen. I have entered the below code at Manifest file : B4X: SetActivityAttribute(Main, android:theme, "@style/DarkTheme") CreateResource(values, theme.xml, <resources> <style name="DarkTheme" parent="@android:style/Theme.Material.Light.NoActionBar.Fullscreen"> <item name="android:windowBackground">@color/window</item> </style> </resources> ) CreateResource(values, colors.xml, <resources> <color name="window">#FF5B7BFF</color> </resources> ) But still I am getting the while color Action bar at the top and bottom of splash screen. How do I remove the white space from top and bottom of splash screen Please advice Thanks
Hello I am getting a white action bar while opening the splash screen. I have entered the below code at Manifest file : B4X: SetActivityAttribute(Main, android:theme, "@style/DarkTheme") CreateResource(values, theme.xml, <resources> <style name="DarkTheme" parent="@android:style/Theme.Material.Light.NoActionBar.Fullscreen"> <item name="android:windowBackground">@color/window</item> </style> </resources> ) CreateResource(values, colors.xml, <resources> <color name="window">#FF5B7BFF</color> </resources> ) But still I am getting the while color Action bar at the top and bottom of splash screen. How do I remove the white space from top and bottom of splash screen Please advice Thanks
Erel B4X founder Staff member Licensed User Longtime User Apr 22, 2021 #2 Splash screen example: https://www.b4x.com/android/forum/threads/b4x-b4xpages-splash-screen.120851/#content Make sure that the activity attributes are set correctly (#IncludeTitle and #FullScreen). Upvote 0
Splash screen example: https://www.b4x.com/android/forum/threads/b4x-b4xpages-splash-screen.120851/#content Make sure that the activity attributes are set correctly (#IncludeTitle and #FullScreen).