Comments (1)
It is unlikely LoaderImageView itself leaks. The mContext passed to it, is like any context pass to ImageView. LoaderImageView itself doesn't use the mContext, but the ImageView (which it inherits does). In normal case, the LoaderImageView (ImageView) would be destroy when HomeActivity is destroy.
The only possible exception is you have load some drawable object to the ImageView, here the object lives longer than HomeActivity. Hence this preventing ImageView (or LoaderImageView) from being destroy when HomeActivity is destroyed. And with that, the mContext it holds leaks.
Check out this blog post http://www.curious-creature.com/2008/12/18/avoid-memory-leaks-on-android/ by Roman Guy.
from loaderviewlibrary.
Related Issues (20)
- Use AppCompat views HOT 1
- Use case in recyclerview HOT 2
- Support of custom views HOT 1
- Memory leak HOT 2
- Shimmer on editText HOT 1
- Remove fade when set text HOT 1
- Custom loading shimmer color HOT 2
- Width Weight not support RTL HOT 1
- how it does work with recyclerview subitem,I have set the related setting according to document,but it dose not work,it will show empty view before the requested data return HOT 1
- Loader not working with text alignment HOT 1
- WebView Support HOT 1
- Is there a way that i can show shimmer for a spasific amount of time HOT 3
- Loader views do not respect content gravity and text alignment
- decoupling setText and revealing the content HOT 3
- demo error!!! HOT 3
- IT
- ....
- It can be used in a dynamic ListView Item Adapter ? This effect will be appear ? HOT 1
- Enable loading view again with setText(null), HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loaderviewlibrary.