Tuesday, April 5, 2011

[android-developers] Fade in animation is not getting displayed?

Hi,


I am using fade in animation in my application.

When i try to play fade in animation it is getting played but not
displayed.

I have layout as follows.


<FrameLayout>
<Button
android:layout_width="20dip"
android:layout_height="10dip"
.../>
<ImageView
android:layout_width="20dip"
android:layout_height="10dip"
android:background="@android:color/white"/>

</FrameLayout>


By default Button is visible and ImageView is invisible.

When user selects one option menu item i am playing fade in
animation by making ImageView as visible.

The fade in animation is as follows.

android:fromAlpha="0.0" android:toAlpha="1.0"
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="200" android:repeatCount="0"

After 200milli seconds i am making m imageView as INVISIBLE.

The fade in animation is not getting displayed.

What is the wrong in the above code?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate