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

Memory Leak #45

Open
Jonfor opened this issue Jan 20, 2016 · 3 comments
Open

Memory Leak #45

Jonfor opened this issue Jan 20, 2016 · 3 comments

Comments

@Jonfor
Copy link

Jonfor commented Jan 20, 2016

I was using the demo included with this repo with the memory monitor open in Android Studios when I noticed that every swipe reduces the memory that is free...and doesn't ever let it go. It seems to allocate .01MB-.02MB per swipe.

I am running the demo on a Nexus 5X running Android 6.0.1.

@lzanita09
Copy link
Contributor

I think the reason the memory usage is larger as you swipe is that the SparkleViewPagerLayout keeps the animated Views as the pager progresses. New Views get added in as you swipe, and they are not removed when they are offscreen. This is something I've been wanting to fix for a while.

@Jonfor
Copy link
Author

Jonfor commented Jan 25, 2016

@jennymolske
Copy link

Same problem here

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

3 participants