app/src/main/java/com/yahala/ImageLoader/model/ImageTagFactory.java
/**
     * Creates a new ImageTagFactory using the size of device display and the default placeholder image for all ImageTags.
     *
     * @param context           Context used to access the device display
     * @param defaultImageResId resource id of an placeholder image to be used while the original image is loaded  or as an error image.
     * @return
     */
Creates a new ImageTagFactory using the size of device display and the default placeholder image for all ImageTags.
@param context           Context used to access the device display
@param defaultImageResId resource id of an placeholder image to be used while the original image is loaded  or as an error image.
@return
Creates a new ImageTagFactory using the size of device display and the default placeholder image for all ImageTags . @param context Context used to access the device display @param defaultImageResId resource id of an placeholder image to be used while the original image is loaded or as an error image . @return
public static ImageTagFactory newInstance(Context context, int defaultImageResId) {
        ImageTagFactory imageTagFactory = new ImageTagFactory();
        Display display = imageTagFactory.prepareDisplay(context);
        imageTagFactory.setInitialSizeParams(imageTagFactory, display.getWidth(), display.getHeight());
        imageTagFactory.setInitialImageId(imageTagFactory, defaultImageResId);
        return imageTagFactory;
    }
public static ImageTagFactory newInstance ( Context context , int defaultImageResId ) { ImageTagFactory imageTagFactory = new ImageTagFactory ( ) ; Display display = imageTagFactory . prepareDisplay ( context ) ; imageTagFactory . setInitialSizeParams ( imageTagFactory , display . getWidth ( ) , display . getHeight ( ) ) ; imageTagFactory . setInitialImageId ( imageTagFactory , defaultImageResId ) ; return imageTagFactory ; }
Creates a new ImageTagFactory using the size of device display and the default placeholder image for all ImageTags.
Creates a new ImageTagFactory using the size of device display and the default placeholder image for all ImageTags .