Just to follow up, the desired effect is achieved by hard-coding the
dimensions of the ImageView to the dimensions of the actual image.

On Dec 20, 10:54 am, jean-guys <[email protected]> wrote:
> Hi all,
>
> I have a pretty simple view hierarchy, including an ImageView in a
> FrameLayout with a source drawable that is bigger than the window
> size.  Using scaleType=center the image is cropped and centered, as
> expected, when laid out.
>
> In response to user interaction we need to rotate the ImageView.  I am
> using a rotate animation XML definition and View.startAnimation().
> This works with one remaining problem: the cropped part of the image
> remains cropped when rotated, so when the image is rotated by 90
> degrees in portrait orientation the image is clearly cropped on the
> top and bottom.  Essentially it looks like a rectangle the size of the
> view window is being rotated, rather than the oversized image in its
> entirety (note it is intentionally oversized in the hope of avoiding
> this cropping problem).  We want the image to fill the screen
> regardless of the angle of rotation.
>
> What am I missing?
>
> Thanks in advance for any assistance!

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