public void loadImage(Object data, ImageSwitcher imageSwitcher, boolean fullScale, int width) { final BitmapWorkerTask task = new BitmapWorkerTask(imageSwitcher); final AsyncDrawable asyncDrawable = new AsyncDrawable(context.getResources(), loadingBitmap, task); imageSwitcher.setImageDrawable(asyncDrawable); task.fullScale = fullScale; task.width = width; task.imageSwitcher = imageSwitcher; task.execute(data); }