Skip to content

Commit 08ac4ca

Browse files
committed
Fixed divider
Fixed swipeMenu
1 parent 833ce4f commit 08ac4ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/main/java/com/omega_r/omegarecyclerview/pagination_example/ImageAdapter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ public void addValues(List<Image> list) {
3939
notifyItemInserted(mList.size() - list.size());
4040
}
4141

42+
@Override
43+
public boolean isDividerAllowedBelow(int position) {
44+
return super.isDividerAllowedBelow(position) && position % 2 == 0;
45+
}
4246

4347
@Override
4448
public long getItemId(int position) {

0 commit comments

Comments
 (0)