You can do this without doing anything programmatically if your data model contains the resource ID of the image.
Example:
Just add the following line to your imageView (I wasn't able to format the code when I was adding it there):
android:src="@{ContextCompat.getDrawable(context,roomInfoItem.resId)}"
where resId
contains R.drawable.your_image_name