I have an app. it has a recyclerView on main screen .
in recyclerView Item layout I have ImageView. the ImageView size is must be responsive. I want to set the images sizes based on screen size. when I received the json images link from server , I do not have any local resources. so I could not put them in mdpi-hdpi-xhdpi-... folders. I want to know what is the standard way for loading images that is received in json format from server . I read a article in this link:
What size to store image on server to use with Android app
my friends says you should fetch all images sizes from servers in json format and make decision what you want to load.
in this link He said send the density to server and it makes decision what is best size for your device.
which one is the most common way ?
If I load all images sizes from server , Should I check density of the device to load which one ?