Beispiel #1
0
        public Drawable GetDrawable(string source)
        {
            // Target drawable object to be udpated once the data has been fetched asynchronously
            URLDrawable drawable = new URLDrawable();

            // Fetch the image asynchronously and load into drawable when done
            ImageGetterAsyncTask asyncTask = new ImageGetterAsyncTask(drawable, this);

            asyncTask.Execute(source);

            // Return Drawable object which will be updated once the async task finishes
            return(drawable);
        }
Beispiel #2
0
 public ImageGetterAsyncTask(URLDrawable urlDrawable, AsyncHtmlImageGetter getter)
 {
     this.urlDrawable = urlDrawable;
     this.getter      = getter;
 }