Android Question Dark screen with title when the app starts

Discussion in 'Android Questions' started by CVR, May 15, 2019.

Similar threads

B4A Code Snippet Full Screen Theme
B4A Tutorial Integrating Firebase Services
Other B4A v8.0 has been released!
B4A Tutorial Automatic Foreground Mode
B4A Code Snippet Theme Colors
  1. CVR

    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.
     

    Attached Files:

  2. DonManfred

    DonManfred Expert Licensed User

    The question is what you are doing in your app in activity_create which causes such a delay?
     
  3. Johan Hormaza

    Johan Hormaza Active Member Licensed User

    Use this in the manifest
    Use this in the manifest.
    Also activates the AppCompat library

    Code:
    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>
    )
     
    moster67, Erel and CVR like this.
  4. CVR

    CVR Member Licensed User

    This solved the problem completely! THANK YOU
     
    Johan Hormaza likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice