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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -