recyclerview - Android image drawable bind -


i working in application have huge list(list of recyclerview) , i'm trying improve memory foot print of app. when used hrop check heap allocation, saw imageviews not visible taking memory, i'm trying remove src tag in xml imageview , trying add dynamically (setimagedrawable) visible.

ex: holder.guidechannelfavorite.setimagedrawable(mcontext.getresources().getdrawable(r.drawable.icon_favorite_channel));

is right way? drawbacks in this?

thanks


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -