Android Question Dark screen with title when the app starts

CVR

Member
Licensed User
Hello!
The question is the following:
I already have the app ready, but when I open it, first a kind of dark screen with the title of the app (before loading the layout) comes out which makes the app not look very good.
Any other App starts immediately and does not show that kind of delay.
How can I solve that?
I hope you have made me understand!
Thanks for opening!
Attached image.
 

Attachments

  • Screenshot_20190514-205921.png
    Screenshot_20190514-205921.png
    20.3 KB · Views: 202

Johan Hormaza

Well-Known Member
Licensed User
Longtime User
Use this in the manifest
Use this in the manifest.
Also activates the AppCompat library

B4X:
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">#61100E</item>
        <item name="colorAccent">#3F79E7</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
    </style>
        <style name="ToolbarMenu" parent="Base.ThemeOverlay.AppCompat.ActionBar">
        <item name="android:textColorPrimary">#fff</item>
        <item name="android:colorBackground">#0098FF</item>
    </style>
</resources>
)
 
Upvote 0

CVR

Member
Licensed User
Use this in the manifest
Use this in the manifest.
Also activates the AppCompat library

B4X:
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">#61100E</item>
        <item name="colorAccent">#3F79E7</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
    </style>
        <style name="ToolbarMenu" parent="Base.ThemeOverlay.AppCompat.ActionBar">
        <item name="android:textColorPrimary">#fff</item>
        <item name="android:colorBackground">#0098FF</item>
    </style>
</resources>
)
This solved the problem completely! THANK YOU
 
Upvote 0
Top