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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -