On Oct 23, 5:55 pm, Matthias <m.kaepp...@googlemail.com> wrote:
> 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);

just a guess: what is duration of such Animation? maybe it set by
default to 0? if so: anim.setDuration(1000)

but as i said, i cannot see AnimationUtils.makeInAnimation() sources
right now so its just a guess
>   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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to