|
|
@@ -343,7 +343,7 @@ public class MainCategoryContentsImageView extends MainCategoryContentsView {
|
|
|
|
|
|
imageWidth = Math.max(maskWidth + ResourceUtil.dpToPx(50), screenWidth - ResourceUtil.dpToPx(50));
|
|
|
imageHeight = maskHeight + ResourceUtil.dpToPx(50);
|
|
|
- imageView.setScaleType(ImageView.ScaleType.CENTER);
|
|
|
+// imageView.setScaleType(ImageView.ScaleType.CENTER);
|
|
|
Glide.with(imageView)
|
|
|
.asBitmap()
|
|
|
.load(url)
|
|
|
@@ -362,6 +362,7 @@ public class MainCategoryContentsImageView extends MainCategoryContentsView {
|
|
|
@Override
|
|
|
public boolean onResourceReady(Bitmap resource, Object model, Target<Bitmap> target, DataSource dataSource, boolean isFirstResource) {
|
|
|
Visibler.visible(mask0, mask1, mask2);
|
|
|
+// imageView.setScaleType(ImageView.ScaleType.MATRIX);
|
|
|
//you should call after the bitmap drawn
|
|
|
// int imageLoadedWidth = resource.getWidth(); //this is the bitmap's width
|
|
|
// int imageLoadedHeight = resource.getHeight(); //this is the bitmap's height
|