Black screen jump of Activity, flash screen, white screen solution, activity jump

Source: Internet
Author: User

Black screen jump of Activity, flash screen, white screen solution, activity jump

Black screen for Activity jump, flash screen, and white screen Solution

OverridePendingTransition (R. anim. right_in, R. anim. left_out) is added to the Activity );

Add in the sytles File

<Style name = "Theme" parent = "android: Theme">
<Item name = "android: windowBackground"> @ android: color/transparent </item>
<Item name = "android: javaswistranslucent"> true </item>
</Style>

<Style name = "Animation">
<Item name = "android: activityOpenEnterAnimation"> @ null </item>
<Item name = "android: activityOpenExitAnimation"> @ null </item>
<Item name = "android: activityCloseEnterAnimation"> @ null </item>
<Item name = "android: activityCloseExitAnimation"> @ null </item>
<Item name = "android: taskOpenEnterAnimation"> @ null </item>
<Item name = "android: taskOpenExitAnimation"> @ null </item>
<Item name = "android: taskCloseEnterAnimation"> @ null </item>
<Item name = "android: taskCloseExitAnimation"> @ null </item>
<Item name = "android: taskToFrontEnterAnimation"> @ null </item>
<Item name = "android: taskToFrontExitAnimation"> @ null </item>
<Item name = "android: taskToBackEnterAnimation"> @ null </item>
<Item name = "android: taskToBackExitAnimation"> @ null </item>
</Style>

Add android: theme = "@ style/Theme" to the activity of the AndroidManifest File"

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.