americosfacebook / googletv-issues

Automatically exported from code.google.com/p/googletv-issues
0 stars 0 forks source link

Incorrect clipping of images with android:scaleType="centerCrop", Sony Google TV 3.2 update #108

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Images displayed with android:scaleType="centerCrop" intermittently display 
only half of the image. 

Disabling hardware acceleration makes the issue go away.

See the attached screen captures.

The background is actually drawn with Canvas.DrawBitmap, of a smaller bitmap, 
blown up to large size (there are problems with very large bitmap drawables, 
and I'm not sure I really want a 1980x1068 drawable). However, knocking out 
that code does not cure the problem with the icons, which continue to show 
intermittently as triangles. 

Icons in the first screen capture are straight from resources. Probably scaled 
because this a 720p display. I have xhdpi resources, but not resources that 
match hdtv (720). The issue manifests occasionally on Image buttons in the top 
and bottom bars -- the Option Menu button particularly (a stock actionBar menu 
item).

The issue seems to occur only with centerCrop scaling. Other scale types don't 
seem to generate the problem.

Album thumbnails in the second screen-capture are definitely scaled.

Informal observation: it seems to only occur on one image per row (if that 
helps any).

Embarassinglyh, the first Sony Google TV was sent back for repair, because I 
couldn't imagine this was anything other than a flaky GPU. However, I bought a 
second unit which exhibits exactly the same symptoms.

First image is 720p. Second image is 1080p, downscaled by 50%.

Original issue reported on code.google.com by rerdav...@gmail.com on 29 Nov 2012 at 6:51

Attachments: