فهرست منبع

[메인][New] 이미지 로딩 전 placeholder 위치 조절2

hyodong.min 6 سال پیش
والد
کامیت
8fc6bdc399

+ 6 - 6
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/main/MainCategoryContentsImageView.java

@@ -368,8 +368,6 @@ public class MainCategoryContentsImageView extends MainCategoryContentsView {
 
         @Override
         public boolean onResourceReady(Drawable resource, Object model, Target<Drawable> target, DataSource dataSource, boolean isFirstResource) {
-          imageWidth = overrideWidth;
-          imageHeight = overrideHeight;
 
           Visibler.visible(mask0, mask1, mask2);
           //you should call after the bitmap drawn
@@ -378,7 +376,9 @@ public class MainCategoryContentsImageView extends MainCategoryContentsView {
 //          Log.i("APP# MainCategoryContentsImageView | init", "| maskWidth: " + maskWidth + ", maskHeight: " + maskHeight);
 //          Log.i("APP# MainCategoryContentsImageView | init", "| imageWidth: " + imageLoadedWidth + ", imageHeight: " + imageLoadedHeight);
 
-//          onScrolledForImage();
+          imageWidth = overrideWidth;
+          imageHeight = overrideHeight;
+          onScrolledForImage();
           showFlag();
 
           return false;
@@ -390,9 +390,9 @@ public class MainCategoryContentsImageView extends MainCategoryContentsView {
   private void showFlag() {
 
     // flag 노출
-          /*
-          스페셜 최우선, 나머지는 중복되지 않음.
-           */
+    /*
+    스페셜 최우선, 나머지는 중복되지 않음.
+     */
     textFlag.setAlpha(1f);
     if (APIData.isTrue(bean.getFlagSpecial())) {
       textFlag.setText(R.string.main_flag_special);