-
-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does it support non sticky footer? #142
Comments
@stonecold123 where do you "wrap" the adapters as done here: |
Do you mean I need to use FastScrollIndicatorAdapter and wrap the footeradapter with it? |
@stonecold123 you have the footerAdapter.wrap(adapter); and you then apply the |
Thanks mike,just solved it. Also, I should have put FooterAdapter<FooterView> footerAdapter = new FooterAdapter();
GridLayoutManager gridLayoutManager = new GridLayoutManager(this,2);
recyclerView.setLayoutManager(gridLayoutManager);
recyclerView.setAdapter(footerAdapter.wrap(adapter.wrap(fastAdapter)));
adapter.addModel(productItem);
footerAdapter.add(new FooterView()); |
@stonecold123 yes correctly the (In your case the FastAdapter is the GenericItemAdapter which is FastAdapter + 1 GenericItemAdapter combined) |
Read this #68
but I still don't understand how to use
FooterAdapter
to add a non-sticky footer to the recyclerlist.Suppose I have an xml layout as a footer,
what is the way of adding this layout as a footer to the adapter ? I'm not sure what to add to
footerAdapter.add()
.Took a shot in the dark after reading this tutorial:
FooterView:
In the Activity.class:
But I am getting errors at
footerAdapter.add(new FooterView());
I have also tried the same with HeaderAdapter. It also shows the same error with the
add()
method.The text was updated successfully, but these errors were encountered: