开发者

ImageButtons/ImageViews and graphics resized themselves on my app

开发者 https://www.devze.com 2023-01-26 14:37 出处:网络
I compiled my application, and then reran it, and all of a sudden my graphics have all resized to much smaller versions of themselves...be it ImageViews, ImageButtons, etc...

I compiled my application, and then reran it, and all of a sudden my graphics have all resized to much smaller versions of themselves...be it ImageViews, ImageButtons, etc...

I did place a small icon in ldpi, a med开发者_高级运维ium one in mdpi and a high one in hdpi - could that be what triggered the issue? I didn't change my code, so all of my ImageViews I am using as titles for layouts are still set to wrap_content, everything just got smaller.

Any idea why this may be, or are there workarounds?

I test on a Motorola Droid 2, btw


When you were just working in res/drawable android automatically does the scaling of the asset.

When you added the new assets did you put your existing asset in res/drawable-mdpi and then one that is 150% size in res/drawable-hdpi and one that is 75% in res/drawable-ldpi?

Or did you put your existing asset in res/drawable-hdpi and then two smaller versions in res/drawable-mdpi and res/drawable-ldpi? If you did then your graphics would have appeared to shrink.

0

精彩评论

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

关注公众号