Code example for ImageSwitcher

Methods: showNext

0
                BitmapDownloaderTask bitmapDownloaderTask = getBitmapDownloaderTask(imageView);
                if ((this == bitmapDownloaderTask) || (mode != Mode.CORRECT)) {
                    if (imageView != null) {
                        imageView.setImageBitmap(bitmap);
                        if (imageSwitcher != null && mode != Mode.CORRECT) {
                            imageSwitcher.showNext();
                        } 
                    } 
                } 
            } 
        } 
    } 
 
    /** 
     * The actual AsyncTask that will asynchronously download the image. 
     */ 
    class OnlyDownloadBitmapTask extends AsyncTask<String, Void, Void> {
 
        /** 
         * Actual download method. 
         */