开发者

Resizing images according to the Screen Size on Android

开发者 https://www.devze.com 2023-04-10 05:23 出处:网络
I am making a graphic intensive application for Android. The problem i am facing is that on my home screen there are 6 images that 开发者_如何转开发are placed on a FrameLayout. Since i own a HTC Desi

I am making a graphic intensive application for Android.

The problem i am facing is that on my home screen there are 6 images that 开发者_如何转开发are placed on a FrameLayout. Since i own a HTC Desire, I placed the images such that they look great on 3.7in but when i test it on a 5 or a 7in display, the UI goes crazy and there are huge gaps amongst the tiny images which were nice on 3.7in.

How do I fix my app for all screen sizes? How do I scale the images such that there are no gaps?

please help ....


Look out this Supporting Multiple Screens in Android Developers from where you will get the exact answer. You have to create different images and put them in the respected folder's according to the densities.

0

精彩评论

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

关注公众号