|
|
@@ -72,6 +72,16 @@ public class MyBucketListFragment extends FragmentBase<MyBucketListPresenter> im
|
|
|
imageViewBucketCheck.setOnClickListener(view -> {
|
|
|
presenter.onEvent(new Event.Builder(Event.TOGGLE).bool(isClicked()).build());
|
|
|
});
|
|
|
+
|
|
|
+ recyclerViewMyBucketList.addItemDecoration(new RecyclerView.ItemDecoration() {
|
|
|
+ @Override
|
|
|
+ public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
|
|
|
+ outRect.right = ResourceUtil.dpToPx(8);
|
|
|
+ outRect.left = ResourceUtil.dpToPx(8);
|
|
|
+ outRect.top = ResourceUtil.dpToPx(8);
|
|
|
+ outRect.bottom = ResourceUtil.dpToPx(8);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -122,15 +132,6 @@ public class MyBucketListFragment extends FragmentBase<MyBucketListPresenter> im
|
|
|
}
|
|
|
});
|
|
|
recyclerViewMyBucketList.setNestedScrollingEnabled(false);
|
|
|
- recyclerViewMyBucketList.addItemDecoration(new RecyclerView.ItemDecoration() {
|
|
|
- @Override
|
|
|
- public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
|
|
|
- outRect.right = ResourceUtil.dpToPx(8);
|
|
|
- outRect.left = ResourceUtil.dpToPx(8);
|
|
|
- outRect.top = ResourceUtil.dpToPx(8);
|
|
|
- outRect.bottom = ResourceUtil.dpToPx(8);
|
|
|
- }
|
|
|
- });
|
|
|
recyclerViewMyBucketList.setLayoutManager(new GridLayoutManager(getActivity(), 2));
|
|
|
recyclerViewMyBucketList.setAdapter(adapter);
|
|
|
}
|