Skip to content
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

InfinitePlaceHolderView loading more at the top #153

Open
rmpt opened this issue Feb 16, 2019 · 2 comments
Open

InfinitePlaceHolderView loading more at the top #153

rmpt opened this issue Feb 16, 2019 · 2 comments

Comments

@rmpt
Copy link

rmpt commented Feb 16, 2019

Hi Janishar, great job!
I'm trying to implement a messages view, so the orientation of the loading must be inverse of the default. The idea is when I reach the top of the list the load more view quicks in and @loadmore is called so I append items to the top of the InfinitePlaceHolderView.
Can you help me to do this, I've been looking into your code but seems that the load more feature only works at the bottom of the list.

thanks

@rmpt rmpt changed the title InfinitePlaceHolderView to top InfinitePlaceHolderView loading more at the top Feb 16, 2019
@janishar
Copy link
Owner

@rmpt Can you try this

LinearLayoutManager.setReverseLayout(true)
// And if you don't want your items to stack from bottom additionally set
// setStackFromEnd(boolean) to false for the LinearLayoutManager

@rmpt
Copy link
Author

rmpt commented Mar 9, 2019

thanks @janishar ! I only test it now but setStackFromEnd did the trick! thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants