that'll work --- thanks muchly


>Unfortunately no. There is a trick though, used by ProgressBar. You
>can use an AlphaAnimation and call its getTransformation() yourself
>from your draw method. This will give you an alpha value between 0.0
>and 1.0 which you can then use to animate anything. Here is how it's
>used in ProgressBar.java (the "alpha" value is used to set a
>Drawable's level property):
>
>             long time = getDrawingTime();
>             if (mAnimation != null) {
>                 mAnimation.getTransformation(time, mTransformation);
>                 float scale = mTransformation.getAlpha();
>                 try {
>                     mInDrawing = true;
>                     d.setLevel((int) (scale * MAX_LEVEL));
>                 } finally {
>                     mInDrawing = false;
>                 }
>                 if (SystemClock.uptimeMillis() - mLastDrawTime >=
>ANIMATION_RESOLUTION) {
>                     mLastDrawTime = SystemClock.uptimeMillis();
>                     postInvalidateDelayed(ANIMATION_RESOLUTION);
>                 }
>             }
>
>Note that I have plans for a much more flexible animation system in a
>future version of Android.
>
>On Wed, Jul 22, 2009 at 11:44 AM, Jason
>Proctor<[email protected]> wrote:
>>
>>  using the stock animation system, it looks like i'm constrained in
>>  behaviour by the Transformation class. i'd like to animate by
>>  changing a mesh, can the system support this?
>>
>>
>>  --
>>  jason.software.particle
>>
>>  >
>>
>
>
>
>--
>Romain Guy
>Android framework engineer
>[email protected]
>
>Note: please don't send private questions to me, as I don't have time
>to provide private support.  All such questions should be posted on
>public forums, where I and others can see and answer them
>
>

-- 
jason.software.particle

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

Reply via email to