Pārlūkot izejas kodu

[카테고리][Bug] "여행 어디가지" 링크 오류 수정

hyodong.min 7 gadi atpakaļ
vecāks
revīzija
8f6d516ea2

+ 1 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/category/type2/SecondCategoryMainAdapter.java

@@ -83,7 +83,7 @@ public class SecondCategoryMainAdapter extends RecyclerView.Adapter<SecondCatego
       }
     }
 
-    holder.bind(position, categoryContentsListBean, event -> {
+    holder.bind(startIndex, categoryContentsListBean, event -> {
       if (null != listener) {
         listener.onEvent(event);
       }

+ 6 - 6
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/category/type2/SecondCategoryMainFragment.java

@@ -55,6 +55,12 @@ public class SecondCategoryMainFragment extends FragmentBase<SecondCategoryMainP
   protected void onAfterActivityCreated(Bundle savedInstanceState) {
     mainSeriesView = findViewById(R.id.series_image_text_view);
     recyclerViewSecondCategoryMain = findViewById(R.id.recycler_view_second_category_main);
+    recyclerViewSecondCategoryMain.addItemDecoration(new RecyclerView.ItemDecoration() {
+      @Override
+      public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
+        outRect.bottom = ResourceUtil.dpToPx(7);
+      }
+    });
     viewFilter = findViewById(R.id.second_category_main_filter);
     spinnerOrder = findViewById(R.id.spinner_select_contents);
   }
@@ -116,12 +122,6 @@ public class SecondCategoryMainFragment extends FragmentBase<SecondCategoryMainP
       presenter.onEvent(event);
     });
 
-    recyclerViewSecondCategoryMain.addItemDecoration(new RecyclerView.ItemDecoration() {
-      @Override
-      public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
-        outRect.bottom = ResourceUtil.dpToPx(7);
-      }
-    });
     recyclerViewSecondCategoryMain.setLayoutManager(new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false));
     recyclerViewSecondCategoryMain.setAdapter(secondCategoryMainAdapter);
 

+ 1 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/category/type2/SecondCategoryMainHolder.java

@@ -69,7 +69,7 @@ public abstract class SecondCategoryMainHolder extends CategoryMainViewHolder<Ca
         ImageView imageView = images[i];
         TextView textView = texts[i];
 
-        setupView(i, list.get(i), imageView, textView);
+        setupView(index + i, list.get(i), imageView, textView);
       }
     }
   }