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

Load more view in first time #480

Open
mohammadaminha opened this issue Jan 27, 2018 · 3 comments
Open

Load more view in first time #480

mohammadaminha opened this issue Jan 27, 2018 · 3 comments

Comments

@mohammadaminha
Copy link

Hi,Thanks for this amazing library
I have 0.7.3 version
I think this issue not solve yet !
its not working on first load more scrolling !
but second time its working correctly
I add the load more view to recycler and adapter !
after initialize ultimateRecyclerView
ultimateRecyclerView.reenableLoadmore();
ultimateRecyclerView.setLoadMoreView(R.layout.load_more_view);
after initialize adapter
adapter.setCustomLoadMoreView(loadmoreView);
so whats the problem ? why load more view not showing at the first time ?

@cymcsg
Copy link
Owner

cymcsg commented Jan 27, 2018

Do you mean the loading more view not showing even in the demo app or only in your app? I want to find out the reason in this problem.

@mohammadaminha
Copy link
Author

mohammadaminha commented Jan 28, 2018

In the demo app its working like a charm!
I think im doing something wrong
but i create my adapters exactly like your adapters !
Adapter extends UltimateViewAdapter<CustomView...>
And i set the newFooterHolder in adapter, am i wrong ?
In demo app we have to add the items by clicking !
In my case i have dynamic Arraylist with custom adapter
Pls check that with a custom adapter and dynamic ArrayList
I think loadmoreview is always created with notifydatachange !

@mohammadaminha
Copy link
Author

I couldnt fix this problem in my project and i used a custom layout instead of loadmoreview
I make a layout bottom of ultimatedrecyclerview and set property visibility:gone
and in loadmore method i change the visibility to Visible
After it retrieves data (Onresponse Method in retorofit) i change visibility to gone again
and it works fine
its useful and works like a charm
I know its simple but could be used instead of loadmoreview

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