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
Post a Comment