Wish [B4xPages] Request support to hide the "page" that displays before the Main Activity is shown

Mashiane

Expert
Licensed User
Longtime User
Ola

Before the main activity gets shown, there is a "splash" screen that's gets displayed. This is usually a blank white page with a page title. The code in this manifest script helps in "hiding" it. This script was found somewhere in the forum and it works perfectly.

B4X:
SetActivityAttribute(Main, android:theme, "@style/DarkTheme")
CreateResource(values, theme.xml,
<resources>
   <style name="DarkTheme" parent="android:Theme">
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowIsFloating">true</item>
    <item name="android:windowNoTitle">true</item>
    <item name="android:backgroundDimEnabled">false</item>
  </style>
</resources>)

Sadly this affects how B4XPages works, it raises an error that an object should be initialized. This was raised in this thread.


Thank you.
 
Top