Android Question Problem with [B4X] [B4XPages] Splash Screen

Mehrzad238

Member
So I tried to use @Erel example for SplashScreen and the debugger gives me this error :
B4X:
AndroidManifest.xml:24: error: Error: No resource found that matches the given name (at 'theme' with value '@style/MyAppTheme').

and this is my manifest:
B4X:
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
    <style
     name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">#0098FF</item>
        <item name="colorPrimaryDark">#007CF5</item>
        <item name="colorAccent">#AAAA00</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="android:forceDarkAllowed">false</item>
    </style>
</resources>
)

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>
)

thanks
 
Top