How to resize an image to fit multiple screen densities
问题 I need to add an avatar to a grid item. I want to know how to handle the resizing of an image chosen from the phones gallery. Once chosen, I imagine some resizing will be needed, to fit it into the grid. However, do I need to store a resized image for each screen density; store one xhdpi version and scale down for other devices, or be clever in some other way? The reason is, the app stores this image to a cloud db and other people can download this image. They may see the image on different