Closed saiid2020 closed 4 years ago
Found an issue with VisibleThreshold not calculated correctly, thanks! will be fixed in v2.0.0 that should be released In a few days. Be advised that v2.0.0 comes with a BIG API overall to the whole library so check the README before updating.
Thanks for the quick reply. I'm waiting for the problem to be fixed
v2.0.0 is out with the fix, pay attention to the breaking changes.
public class Productadaptermodel extends ItemModule {
@NotNull
@Override
public ItemModuleConfig provideModuleConfig() {
return new ItemModuleConfig() {
@Override
public int withLayoutResource() { return R.layout.layout_category_list; }
};
}
} //////// class Pagation extends PagingModule{
public class Product implements Serializable, Diffable { SerializedName("Unique") @Expose public String unique; @Override public boolean areContentTheSame(@NonNull Object other) { return other instanceof Product && unique.equals(((Product) other).unique); }
} /////// oneAdapter = new OneAdapter(recycler_product) .attachPagingModule(new Pagation()) .attachItemModule(new Productadaptermodel());