Android Web Browser Scaling Works More Effectively for Images than Sprites
I'm developing a mobile web application and I have a home screen with a number of icons on it, so I tried to use a sprite to serve all the images in one swoop.
I noticed, however, that the iphone4 scaled the images in my sprite fairly well (they looked a little dithered), but on my HTC Evo the sprite rendered images look really blocky. I switched to standard images (background:(/image_url/) w/o background-position) and the image looked much better - see this
, where the left image is served using the single image, and the ones to the right of it are served from the sprite (but are the same images in the sprite).Is there a way to get the Android br开发者_如何学运维owser to interpret the sprites better?
You're hitting the maximum decoded image size barrier in the Android browser. This size limit was upped to something reasonable in 2.3. Try splitting up your sprites into smaller images.
This is just a guess but, which one are you using? Your operator or wifi connection? Some operators do compress images over certain size.
精彩评论