Friday, October 23, 2009

[android-developers] Animating ViewStub

Hi,

I am trying to animate a ViewStub -- without success. My code:

stub.setVisibility(View.VISIBLE); // inflate the stub

Animation anim = AnimationUtils.makeInAnimation(this, true);
stub.startAnimation(anim);

No animation is played, the ViewStub simply appears. How come?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment