Android 4.4.2 Animation Fade in and Fade out



I have an application using fade in and fade out animations. It works properly on a device which is android 4.2.2. However the same application does not show the animation on device 4.4.2. These are my xml files


res/anim/fadein.xml



<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://ift.tt/nIICcg"
android:interpolator="@android:anim/linear_interpolator" >

<alpha
android:duration="1000"
android:fromAlpha="0.1"
android:toAlpha="1.0" />


res/anim/fadein.xml



<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://ift.tt/nIICcg"
android:interpolator="@android:anim/linear_interpolator" >

<alpha
android:duration="2000"
android:fromAlpha="1.0"
android:toAlpha="0.1" />


And this is the place where i call fade out animation.



animationFadeOut = AnimationUtils.loadAnimation(this, R.anim.fadeout);
aim.startAnimation(animationFadeOut);


I strongly wonder why it is ok for version 4.2.2 but not working on 4.4.2. Can you help me?


Regards


No comments:

Post a Comment