title: Drawable image not showing in RecyclerView
body: <p>I am having a problem in recyclerView, that it is not showing an image from drawable resource.</p>
  
  <p>I have stored the imageResource in a data class with other text and audioResource and then populated the recyclerView using adapter. Everything is working, like the text is shown correctly, the audio is being played, only the image view is not showing the image, instead it is showing a purple box.</p>
  
  <p>Here is the data class</p>
  
  <pre><code>    @Parcelize
      data class Word (
         // English Translation of word
         var englishTranslation: String,
         // French Translation of word
         var frenchTranslation: String,
         // Image resource for corresponding image to the word
         var imageResourceId: Int,
         // Audio resource for the pronunciation of the word
         var audioResourceId: Int,
         // String for description of image
         var imageContentDescription: String,
         // String for description of audio
         var audioResourceContentDescription: String): Parcelable
  </code></pre>
  
  <p>and this is the actual list Data</p>
  
  <pre><code>    private val fruits: MutableList&lt;Word&gt; = mutableListOf(
          Word("Apple", "Pomme",
              R.drawable.ic_image_apple, R.raw.des_fruits, "Image of the apple",
              "pronunciation of the audio"),
          Word("Orange", "Orange",
              R.drawable.ic_image_apple, R.raw.des_fruits, "image of the Orange",
              "Plays the pronunciation audio"),
          Word("Strawberry", "Fraise",
              R.drawable.ic_image_apple, R.raw.des_fruits, "image of the Strawberry",
              "Plays the pronunciation audio")
      )
  </code></pre>
  
  <p>and below here is the xml code of imageView in recyclerView item layout</p>
  
  <pre><code>    &lt;ImageView
          android:id="@+id/word_image"
          android:layout_width="36dp"
          android:layout_height="36dp"
          android:layout_marginStart="@dimen/spacing_large"
          android:layout_marginTop="8dp"
          android:layout_marginBottom="8dp"
          android:contentDescription="@{word.imageContentDescription}"
          android:src="@{word.imageResourceId}"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent"
          tools:src="@drawable/ic_image_apple" /&gt;
  </code></pre>