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 -

c# - Update a combobox from a presenter (MVP) -

android - Unable to generate FCM token from dynamically instantiated Firebase -