Devlight / InfiniteCycleViewPager

Infinite cycle ViewPager with two-way orientation and interactive effect.
Apache License 2.0
5.75k stars 827 forks source link

Very slow rendering with dynamic data #66

Open arshadkazmi42 opened 6 years ago

arshadkazmi42 commented 6 years ago

I am populating viewpaper with data from server. It is taking 5-10 minutes to render 6 pages.

msr550 commented 6 years ago

Yes, I also observed. It is taking more time to render dynamic. Most of the times ANR coming.

Thanks

arshadkazmi42 commented 6 years ago

any fixes for this yet?

remylavergne commented 6 years ago

Same problem here. In my case, my internet request is very quick, but when I set the adapter, something freeze my UI between :

The UI is freezing almost 2 minutes, specially on debug mode. I don't have any problem on my physical device (but in powerless devices, the problem occurs).

edit : I put all process in AsyncTask (same problem)

arshadkazmi42 commented 6 years ago

I have checked the core code. Its happening due to layout resizing. Its doing some nested operations for resizing the layout. Looks like developer this repo is not maintained any more.

remylavergne commented 6 years ago

Yeap this library is dead :) No response from the creator since 2016. We have change for another lib updated on Android Arsenal.

arshadkazmi42 commented 6 years ago

@remylavergne can you share the library with me. I am looking for some library similar to this one

remylavergne commented 6 years ago

I use actually : https://github.com/ToxicBakery/ViewPagerTransforms

You can find some different transitions.

piyushmishra10 commented 6 years ago

The reason behind ANR is: there is a bug in the lib.

Ideally, there shouldn't be a left view when we load the data. Sometimes it's not there, in that case, the loading time is very less.

Most of the time you'll see a left view but you will see the 0th position object only and end position view on the left, in that case, it's making a loop and taking hell lot of time to populate the view. Hence, ANR in some cases.

arshadkazmi42 commented 6 years ago

@piyushmishra10 Can you fix the issue in the code? And send me the fixed version of this?

SUBINPTPM commented 5 years ago

any updates?

arshadkazmi42 commented 5 years ago

@SUBINPTPM This repository is not maintained anymore, I built my own viewpager, not as good as this. There are alot of other alternatives, you can check those out

SUBINPTPM commented 5 years ago

@arshadkazmi42 link, please .

arshadkazmi42 commented 5 years ago

Havn't added that code in github. You can search for ViewPagers you will get some good options. I will ping you once i add my code on github7

SUBINPTPM commented 5 years ago

@arshadkazmi42 ok