Code example for ImageView

Methods: setBackgroundDrawable

0
         * @param imageView The {@link ImageView} to use. 
         * @param imageType The type of image URL to fetch for. 
         */ 
        @SuppressWarnings("deprecation") 
        public BitmapWorkerTask(final ImageView imageView, final ImageType imageType) {
            imageView.setBackgroundDrawable(mDefaultArtwork);
            mImageReference = new WeakReference<ImageView>(imageView);
            mImageType = imageType;
        } 
 
        /** 
         * {@inheritDoc} 
         */ 
        @Override 
        protected TransitionDrawable doInBackground(final String... params) {
            // Define the key 
            mKey = params[0];
 
            // The result 
            Bitmap bitmap = null;