|
|
@@ -1,6 +1,9 @@
|
|
|
package kr.co.zumo.app.lifeplus.view.screen.category.type1;
|
|
|
|
|
|
+import android.graphics.Rect;
|
|
|
import android.support.v7.widget.GridLayoutManager;
|
|
|
+import android.support.v7.widget.RecyclerView;
|
|
|
+import android.view.View;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -103,10 +106,21 @@ public class FirstCategoryMainFragment extends CategoryMainFragment<FirstCategor
|
|
|
});
|
|
|
recyclerView.setLayoutManager(gridLayoutManager);
|
|
|
|
|
|
- recyclerView.setPadding(ResourceUtil.dpToPx(21), ResourceUtil.dpToPx(1), ResourceUtil.dpToPx(21), ResourceUtil.dpToPx(41));
|
|
|
- recyclerView.addItemDecoration(new GridItemDecoration(getActivity(), ResourceUtil.dpToPx(4), ResourceUtil.dpToPx(4), ResourceUtil.dpToPx(4), ResourceUtil.dpToPx(4)));
|
|
|
+ recyclerView.setPadding(ResourceUtil.dpToPx(23), ResourceUtil.dpToPx(1), ResourceUtil.dpToPx(23), ResourceUtil.dpToPx(41));
|
|
|
+ recyclerView.addItemDecoration(new GridItemDecoration(getActivity(), ResourceUtil.dpToPx(2), ResourceUtil.dpToPx(4), ResourceUtil.dpToPx(2), ResourceUtil.dpToPx(4)) {
|
|
|
+ @Override
|
|
|
+ public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
|
|
|
+ super.getItemOffsets(outRect, view, parent, state);
|
|
|
+ if (parent.getChildAdapterPosition(view) == 0 || parent.getChildAdapterPosition(view) == 1) {
|
|
|
+ outRect.top = ResourceUtil.dpToPx(7);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
+ ;
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
public void drawContentsBanner(List<CategoryBannerBean> bannerBeans, List<CategoryContentsBean> contentsBeans) {
|
|
|
|