Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - graphics are big and blurry

I have a graphic designer that helps me with UI development. We start with me taking screenshots of my current UI using my Nexus One (800x485). Then he overlays new art over the old screenshots in Photoshop and creates transparent PNGs. Then I take that, plug it in my app and to my dismay these images appear big and blurry (about 35% larger). When I check images these are created at 72 dpi so I really have no idea why this is happening. Any ideas?

like image 255
Bostone Avatar asked Nov 20 '25 20:11

Bostone


1 Answers

You need to put the graphics in the correct configuration directory for the target screen. If they are being designed for N1, that 800x480 screen is a high density screen, so the graphics need to go in drawable-hdpi. Not in the generic drawable directory, which for backwards compatibility is assumed to be mdpi.

like image 133
hackbod Avatar answered Nov 23 '25 10:11

hackbod