Code example for WeakReference

0
	 *                            'android:maxWidth' and 'android:maxHeight') are set with concrete values. It helps to 
	 *                            save memory. 
	 *                            <p/> 
	 */ 
	public ImageViewAware(ImageView imageView, boolean checkActualViewSize) {
		this.imageViewRef = new WeakReference<ImageView>(imageView);
		this.checkActualViewSize = checkActualViewSize;
	} 
 
	/** 
	 * {@inheritDoc} 
	 * <p/> 
	 * Width is defined by target {@link ImageView view} parameters, configuration 
	 * parameters or device display dimensions.<br /> 
	 * Size computing algorithm:<br /> 
	 * 1) Get the actual drawn <b>getWidth()</b> of the View. If view haven't drawn yet then go 
	 * to step #2.<br /> 
	 * 2) Get <b>layout_width</b>. If it hasn't exact value then go to step #3.<br /> 
	 * 3) Get <b>maxWidth</b>. 
	 */