cymcsg / UltimateRecyclerView

A RecyclerView(advanced and flexible version of ListView in Android) with refreshing,loading more,animation and many other features.
Apache License 2.0
7.22k stars 1.42k forks source link

Load more view in first time #480

Open mohammadaminha opened 6 years ago

mohammadaminha commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 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 commented 6 years ago

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