On Sat, Mar 5, 2011 at 3:58 PM, lbendlin <[email protected]> wrote:

> I want to flip the canvas _after_ all subviews are rendered, so that the
> entire view is mirrored. That's why I put the transform after the super.
>

Try doing the tranform first, then call super. This sets up the Canvas for
drawing flipped how you expect. Otherwise what you're saying is "draw
normal, transform the canvas (which has no effect since the drawing has
already happened, then restore the original (which also has no effect since
you did not draw after the transformation").


> I do admit that is not based on actual knowledge how this stuff really
> works.  (by the way, the same function on iOS requires only a single line of
> code!)
>

Well, I'm sure you'll find some one-liners in Android that are far more
complicated on iOS =)


> I sent you the screenshots via email... Hope that isn't violating the group
> code.
>

Nah, it's fine. Do the same but email it to <
[email protected]> with this same thread's subject to post
it to the group so everyone else can see what you're talking about.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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