Saturday, April 7, 2012

[android-developers] ShapeDrawable and setImageMatrix on ICS

Hello!

I have an app that constructs a fairly advanced ShapeDrawable, and
uses ImageView#setImageDrawable to render it on screen.

Then I use ImageView#setImageMatrix to scale and transpose it for
"multitouch zoom and pan".

In Android < Honeycomb this works beautifully - the ImageView is
always crisp and pretty due to the ShapeDrawable being vector graphics
and all.

But when I try this code on my new HTC One X with Ice cream Sandwich
the ImageView seems to scale the rendered bitmap instead of the
contained ShapeDrawable, and the scaled image gets all pixelly and
ugly.

Is this a bug in ICS, or a change that I should adjust to (and how?)
or is it a bug in my phone?

regards,
//Martin

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate