import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
+import org.evergreen.android.R;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
public enum Mode { NO_ASYNC_TASK, NO_DOWNLOADED_DRAWABLE, CORRECT }
private Mode mode = Mode.CORRECT;
- private int MIN_IMG_HEIGHT = 75;
+ private int MIN_IMG_HEIGHT = 100;
/**
* Download the specified image from the Internet and binds it to the provided ImageView. The
if ((this == bitmapDownloaderTask) || (mode != Mode.CORRECT)) {
imageView.setImageBitmap(bitmap);
}
+ else
+ imageView.setImageResource(R.drawable.address_book);
}
}
}
public DownloadedDrawable(BitmapDownloaderTask bitmapDownloaderTask) {
super(Color.BLACK);
+
bitmapDownloaderTaskReference =
new WeakReference<BitmapDownloaderTask>(bitmapDownloaderTask);
}
recordImage = (ImageView) row.findViewById(R.id.search_record_img);
//TODO fix bugs + features
- String imageHref= GlobalConfigs.httpAddress + "/opac/extras/ac/jacket/small/"+record.doc_id;
+ String imageHref= GlobalConfigs.httpAddress + "/opac/extras/ac/jacket/small/"+record.isbn;
//start async download of image
imageDownloader.download(imageHref, recordImage);
// Get reference to TextView - title