![](/img/trans.png)
[英]Android Universal Image Loader slow, ignores ImageView height and width
[英]How to get height and width of image with Android Universal Image Loader?
如何訪問使用Android Universal Image Loader加載的圖像的高度和寬度?
使用ImageLoadingListener加載圖像時,可以獲取圖像的位圖:
imageLoader.displayImage(imageUrl, imageView, [options], new SimpleImageLoadingListener() {
@Override
public void onLoadingComplete(Bitmap loadedImage) {
int width = loadedImage.getWidth();
int height = loadedImage.getHeight();
//...
}
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.