开发者

Images are shrinking in my application - Android

开发者 https://www.devze.com 2023-01-28 07:34 出处:网络
I developed an application for android. I am having a problem with the display of my application on my mobile. I am using the HTC wildfire mobile having a resolution of 240 x 320. When I loaded my app

I developed an application for android. I am having a problem with the display of my application on my mobile. I am using the HTC wildfire mobile having a resolution of 240 x 320. When I loaded my app开发者_Go百科lication into mobile the images which I used in my application became small ( Shrinking) look and feel is so bad. It is showing somewhat good in the emulator.

How can I get the actual images in my application (Without shrinking )?

Can anybody help me, please?

Thanks and Regards,

Kiran.


Different display resolutions on android phones


Are you fixing the size of the ImageView to be particular pixels? like 140px? don't do that, use wrap_content or fill_parent instead. use a mix and combination of various layouts to achieve what you want. try to never fix the width/height by specifying pixels, if its extremely necessary, use dip instead of px.

0

精彩评论

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