Issue:
1) When my application start then white/black screen appears, and then main UI is display.
2) Before my fragment load in activity black/white screen appears for 3/4 seconds and then fragment load.
Solution:
To fix this nasty problem, update the /res/values/styles.xml to include
- <item name="android:windowDisablePreview">true</item>
- <item name="android:windowBackground">@android:color/black</item>
for example :
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
<item name="android:windowDisablePreview">true</item>
<!-- <item name="android:windowBackground">@android:color/black</item> -->
</style>
nice solution for white screen :)
ReplyDelete