android - ImageButton automatic scaling issue -


i'm trying troubleshoot code small form factor device , imagebuttons i'm using in relativelayout seem automatically scaled larger somehow. i've tried various methods of preventing them scaling, none of them have worked. suggestions?

i think have see density considerations preventing scaling.

the easiest way avoid pre-scaling put resource in resource directory nodpi configuration qualifier. example:

res/drawable-nodpi/icon.png 

when system uses icon.png bitmap folder, not scale based on current device density.

from http://developer.android.com/guide/practices/screens_support.html#densityconsiderations


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -