My fade in code works p开发者_C百科roperly, but at the end before transitioning to the main .java file it shows the image again for a second. What could I do to fix this?
FadeIn code:
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<alpha
android:fromAlpha="0.0"
android:toAlpha="1.0"
android:duration="1500">
<alpha
android:startOffset="1500"
android:fromAlpha="1.0"
android:toAlpha="0.0"
android:duration="1500"
>
</alpha>
</alpha>
</set>
Try setting the android:visibility="invisible" on the ImageView in your layout. If this doesn't work please post the relavent code from your xml layout, and from your java file.
精彩评论