开发者

how to get crisp graphics on android device

开发者 https://www.devze.com 2023-01-24 10:35 出处:网络
I\'m a visual designer creating a UI for an app for an android tablet. The resolution of the tablet is 1024x600 with a density of 160 - I\'m building the UI in photoshop on a 1024x600 72dpi canvas - I

I'm a visual designer creating a UI for an app for an android tablet. The resolution of the tablet is 1024x600 with a density of 160 - I'm building the UI in photoshop on a 1024x600 72dpi canvas - Is this right? I've seen some previews on the device and the graphics that are super crisp on my monitor are kinda fuzzy on the device. I would have expected them to be even crisper.

The app wont need to support any other devices so its not a question multiple resources -

Can anyone shed some light as to 开发者_开发知识库best way to approach? This is my first mobile project so still learning the ins and outs ; )


Guides from Samsung. Bet you also developing for that?

If your UI is in 1024x600 pixels (in photoshop), it should be no problem. I think the problem may come from a few other issue:

  1. density of 160 is called mdpi in Android, make sure you put the pictures to drawable-mdpi folder;

  2. Are you sure your picture/graphics isn't stretched by the Android layouts? For example, you may have a button in 100x100 px, but in the layout, it is defined like "fill_parent" or "120dip", then, it is stretched and not in native density. The native density for 160 dpi, will be exactly the same as pixel size, (1dip = 1px in 160dpi), so, your button should be "100dip" (or simply use absolute size to get rid of this trouble)

  3. I think you may do a simple test, making a 1024x600 px image (PNG), and put this as the background of the activity, and set the activity to be full screen without title bar. It shouldn't have any problem in showing in this way.

One last word, I actually do my final layout in Fireworks, it has better pixel level control in terms of small UI graphics. But photoshop should also able to do the job.

0

精彩评论

暂无评论...
验证码 换一张
取 消