Hi All,

I have a ViewGroup containing a 3x3 grid of tiles (custom Views) with
symbols on the views.
I wish to rotate the 3x3 grid of tiles while maintaining the symbol's
visual alignment.  I use View.OnTouchListener and override onTouch()
to get player input on the tiles.

Easy.  Each tile gets a rotationAnimation() around it's own center of
-90 degrees and a rotationAnimation() around the group's center via an
animationSet.  This works.  At the end of the rotation sequence, I
update all the symbols to their new configuration and force an
invalidate().

Problem:  At the end of the rotation, the back-buffer is copied to the
front-buffer BEFORE the layout can be invalidated.  This manifests as
a 'flickering' of the symbols from old->new for a rotation.

I have tried:
1) AnimationListener with onAnimationEnd.
2) setFillAfter(true).  Flicker goes away, BUT onTouch now gets wrong
MotionEvent data... it seems it rotates a portion of the screen, but
not the onTouch interface.
3) Multiple combinations of other crap over the last 30+ hours

If anyone has any suggestions on how to remove the flickering it would
be very much appreciated.

ps: set.setZAdjustment(Animation.ZORDER_TOP);   is BORKED.  If I
animate just one tile, it goes UNDER the others with ZORDER_TOP.

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