Thursday, August 15, 2013

[android-developers] Re: How to animate a bar which grows in height

Shoot! I just saw that you're using alignParentBottom...

Maybe you can just tweak the ScaleAnimation and feed it with negative values or flip the from / to values



On Thursday, August 15, 2013 9:53:29 AM UTC-5, Daniel Rindt wrote:
Hello,

i try to let grow a bar which actually is a simple View with a color in hight for animating a voting display. My code looks like this:

        ScaleAnimation anim = new ScaleAnimation(1, 1, 0, 1, 0, 0);
        anim.setDuration(5000);
        anim.setFillEnabled(true);
        anim.setFillAfter(true);

        mQ1.startAnimation(anim);

mQ1 is a View. But when the animation starts its top down animated instead of bottom up. So i played with the parameters also and got lots
of different effects. Maybe its not possible to achieve this? Or i have to rotate it before?

Thanks for reading
Daniel

--
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
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate