Android solves the issue of startup page white screen or black screen

Source: Internet
Author: User

Welcome page start thread because of the excessive amount of data requested and processed, there will be a brief white splash screen on the Welcome page before it appears, and of course the white splash screen stays because of the application theme style Android:[email protected]/ Apptheme uses the theme.light problem, the light-style windowbackground, Colorbackground, Colorforeground and other properties of the value of the values are lighter is white, So the white splash screen will appear.

Here is the code for the style reference when my APP appears with a white splash screen:

<style name= "Startactivitytheme" parent= "Android:Theme.Light.NoTitleBar" >        <item name= "Android: Windowfullscreen ">true</item>        <item name=" Android:windownotitle ">true</item>        < Item Name= "Android:windowbackground" > @drawable/trip_bg_logo_iamge</item>        <!--all customizations That is not specific to a particular api-level can go. -    </style>

  

<!--Start Page--        <activity            android:name= "com.xxx.xxx.xxx.activity.StartActivity"            android: screenorientation= "Portrait"            android:theme= "@style/startactivitytheme" >            <intent-filter>                <action android:name= "Android.intent.action.MAIN"/>                <category android:name= " Android.intent.category.LAUNCHER "/>            </intent-filter>        </activity>

  

Android solves the issue of startup page white screen or black screen

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.