Tuesday, September 13, 2011

[android-developers] Re: Drawing errors during a shrink animation in Android 2.3.4

did you trued to invalidate the view? maybe if you draw it again it
will look good

On Sep 13, 6:10 pm, neuromit <stuart.lay...@gmail.com> wrote:
> I have 12 ImageButtons setup in a 3x4 grid. When the user clicks on an
> image button it grows to fill the screen, holds, and then shrinks down
> to its original location.
>
> The animation works except that when the button is shrinking it
> sometimes leaves lines behind. (I've attached images below). The are
> cleared once the animation finished but it looks really bad during the
> animation.
>
> Is there a better way to achieve this animation? What can I do to
> prevent the drawing errors that I'm getting?
>
> Here is my animation code, its a little complex as I have 3 nested
> animations:
>
> http://ideone.com/kFhs4
>
> Here is an example of what the images look like:
> Before animation:http://i.stack.imgur.com/gOrvX.png
> During Grow Animation:http://i.stack.imgur.com/5l2mx.png
> During Shrink Animation:http://i.stack.imgur.com/driuL.png
>
> These are images captured from my phone running cm7. However I've have
> the same problems in the Emulator and on my Galaxy Tab 10.1 running
> 3.1

--
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