I have an image placed on ImageButtonthat looks good on the mdpi ( medium-dpi ) screen . However, when the device has an hdpi screen ( high resolution per inch ), the image is still pixel-pixel, which looks little on the device screen.
How to make the image (and therefore ImageButton) scale based on pixels independent of density ( dp or dip ) instead of pixels?
source
share