开发者

Android screen resolutions and density. Packages of images

开发者 https://www.devze.com 2023-04-10 09:59 出处:网络
I have a problem in my android app: I have 4 packages of images (for 320x240, 800x480, 854x480 and 1024x600 resolutions).

I have a problem in my android app: I have 4 packages of images (for 320x240, 800x480, 854x480 and 1024x600 resolutions).

I want to have one layout which should look good for any resolution or density (of my 4 packages). Now if I set Padding Left 120 dip for example I have different offsets if different density. How to make offsets identical in appearance for any density? In which folder should I put my pictures so that my layout look good for any density screen? Also what should I write in manifest file for correct work of the app for any density?

Please help!!! Thanks and sorry for 开发者_如何学JAVAmy English...


there are various possibilities to dynamically be ready to every screen size.

what you should do, is add the different drawable directories. there are many different accepted directories that will dynamically use the correct images in the users device.

try reading the adroids supporting different screen sizes article.

good luck

0

精彩评论

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

关注公众号