Glide.with(getContext()).load(imageUrls.get(0)).asBitmap().into(new SimpleTarget<Bitmap>() { @Override public void onResourceReady(Bitmap bitmap, GlideAnimation<? super Bitmap> glideAnimation) { width = bitmap.getWidth(); height = bitmap.getHeight(); } });
Glide根据图片url地址来获取图片的宽高
最新推荐文章于 2022-09-01 11:19:22 发布