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

Very slow rendering with dynamic data #66

Open
arshadkazmi42 opened this issue Mar 28, 2018 · 14 comments
Open

Very slow rendering with dynamic data #66

arshadkazmi42 opened this issue Mar 28, 2018 · 14 comments

Comments

@arshadkazmi42
Copy link

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

@msr550
Copy link

msr550 commented Mar 30, 2018

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

Thanks

@arshadkazmi42
Copy link
Author

any fixes for this yet?

@remylavergne
Copy link

remylavergne commented Apr 25, 2018

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)

@arshadkazmi42
Copy link
Author

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
Copy link

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

@arshadkazmi42
Copy link
Author

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

@remylavergne
Copy link

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

You can find some different transitions.

@piyushmishra10
Copy link

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
Copy link
Author

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

@SUBINPTPM
Copy link

any updates?

@arshadkazmi42
Copy link
Author

@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
Copy link

@arshadkazmi42 link, please .

@arshadkazmi42
Copy link
Author

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
Copy link

@arshadkazmi42 ok

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

5 participants