开发者

Android <alpha> issues... image blinks?

开发者 https://www.devze.com 2023-02-07 03:18 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消