[android-developers] Rotate animation applied to full window -- view crops width? How to fix?
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 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