Skip to content

Instantly share code, notes, and snippets.

@DanishAmjad12
Created July 9, 2024 15:25
Show Gist options
  • Save DanishAmjad12/fe9bbc34607aab8ae2b924e96e1b5a1c to your computer and use it in GitHub Desktop.
Save DanishAmjad12/fe9bbc34607aab8ae2b924e96e1b5a1c to your computer and use it in GitHub Desktop.
fun updateLikeIcon(movie: Moview)
{
if(movie.like?.isLiked==true)
bind.likeIcon.setImageDrawable(ContextCompat.getDrawable(context,R.drawable.ic_thumb_like))
else
bind.likeIcon.setImageDrawable(ContextCompat.getDrawable(context,R.drawable.ic_thumb_unlike))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment