Code example for ImageView

Methods: setBackgroundDrawable

         * @param imageView The {@link ImageView} to use. 
         * @param imageType The type of image URL to fetch for. 
        public BitmapWorkerTask(final ImageView imageView, final ImageType imageType) {
            mImageReference = new WeakReference<ImageView>(imageView);
            mImageType = imageType;
         * {@inheritDoc} 
        protected TransitionDrawable doInBackground(final String... params) {
            // Define the key 
            mKey = params[0];
            // The result 
            Bitmap bitmap = null;
Connect your IDE to all the code out there  Get Codota for Java