As an update, I have further discovered that if I make the width 800
(i.e. the width of the display in landscape mode), then it will work
properly even if it is a child of a LinearLayout.  It only seems to
fail if the size is somewhere between 700 and 800 pixels.

On Mar 29, 5:52 pm, John Gaby <jg...@gabysoft.com> wrote:
> I am trying to create a class that extends SurfaceView which I am
> using to animate some images.  On a particular tablet device
> (800x600), if I create an instance of my view and set it as the main
> view (i.e by calling setContentView), it works fine, even in landscape
> mode where the with is 800 pixels.  However if I place it in a Linear
> Layout, and make the width greater than about 700 pixels, then the
> view paints with an odd skewed transform.  If my view extends View,
> instead of SurfaceView, then it paints correctly at any size (but, of
> course, I cannot animate it).
>
> Now this does not happen when using the emulator, and on some other
> devices, so I am guessing that it is some kind of bug with this
> device.  However it worries me a bit (i.e. I wonder what other devices
> might exhibit this behavior), and was wondering if anyone else has
> seen anything like this when using SurfaceViews, and whether there is
> any kind of workaround.
>
> Thanks.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to