InfiniteCycleViewPager icon indicating copy to clipboard operation
InfiniteCycleViewPager copied to clipboard

Very slow rendering with dynamic data

Open arshadkazmi42 opened this issue 6 years ago • 14 comments

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

arshadkazmi42 avatar Mar 28 '18 07:03 arshadkazmi42

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

Thanks

msr550 avatar Mar 30 '18 10:03 msr550

any fixes for this yet?

arshadkazmi42 avatar Apr 11 '18 11:04 arshadkazmi42

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

  • myLoop.setAdapter(myInfiniteLoopAdapter); &
  • myLoop.notifyDataSetChanged();

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)

remylavergne avatar Apr 25 '18 11:04 remylavergne

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.

arshadkazmi42 avatar Apr 25 '18 12:04 arshadkazmi42

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

remylavergne avatar Apr 25 '18 13:04 remylavergne

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

arshadkazmi42 avatar Apr 27 '18 07:04 arshadkazmi42

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

You can find some different transitions.

remylavergne avatar Apr 27 '18 07:04 remylavergne

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.

piyushmishra10 avatar Jun 28 '18 18:06 piyushmishra10

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

arshadkazmi42 avatar Jun 30 '18 05:06 arshadkazmi42

any updates?

SUBINPTPM avatar Mar 20 '19 10:03 SUBINPTPM

@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

arshadkazmi42 avatar Mar 20 '19 11:03 arshadkazmi42

@arshadkazmi42 link, please .

SUBINPTPM avatar Mar 20 '19 17:03 SUBINPTPM

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

arshadkazmi42 avatar Mar 20 '19 17:03 arshadkazmi42

@arshadkazmi42 ok

SUBINPTPM avatar Mar 20 '19 17:03 SUBINPTPM