Android - Setting background on canvas using PNG file
问题 I'm trying to set a .PNG file as background on Canvas in my app. I've made an image 480 x 800 and used this method: canvas.drawBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.image_1), 0, 0, null); I've started an emulator (WVGA800) but my image looks greater than screen of the device. How do I resize this image or what kind of methods should I use to make this image well-matched. Secondly, is there any way to make backgrounds like this universal for devices with different