Package 

Class MultiSourceHelper

    • Method Detail

      • getBestSourceForSize

         static MultiSourceHelper.MultiSourceResult getBestSourceForSize(int width, int height, List<ImageSource> sources, double multiplier)

        Chooses the image source with the size closest to the target image size.

        Parameters:
        width - the width of the view that will be used to display this image
        height - the height of the view that will be used to display this image
        sources - the list of potential image sources to choose from
        multiplier - the area of the view will be multiplied by this number before calculating thebest source; this is useful if the image will be displayed bigger than the view (e.g.