Closed saiid2020 closed 4 years ago
Did you check the sample project? it has a Java activity https://github.com/ironSource/OneAdapter/blob/develop/sample/app/src/main/java/com/idanatz/sample/examples/BasicJavaExampleActivity.java
Pagination does not work in Java
static class Pagation extends PagingModule {
public Pagation(OnLoadMore onLoadMore ) {
config(builder->{
builder.setLayoutResource(R.layout.item_progress);
builder.setVisibleThreshold(10);
return null;
});
onLoadMore(mo->{
onLoadMore.onloadmore(mo);
return null;
});
}
}
oneAdapter = new OneAdapter(recycler_product)
.attachPagingModule(new Pagation(onLoadMore))
.attachItemModule(new Productadaptermodel(onItemClickListener));
I've updated the java sample with paging module and it working great https://github.com/ironSource/OneAdapter/blob/develop/sample/app/src/main/java/com/idanatz/sample/examples/BasicJavaExampleActivity.java
I found a problem when I set the linearlayout after oneadapter, pagination does not work
I only know Java, please support Java as well