google-developer-training / android-kotlin-fundamentals-apps

android-kotlin-fundamentals-apps
Other
1.68k stars 2.12k forks source link

Android Kotlin Fundamentals codelab: Image placeholder disappears #364

Closed yorkish closed 1 year ago

yorkish commented 4 years ago

Describe the problem I don't know if it is a IDE bug or some missing Code Fragment/Explanations... but as soon as I replace android:src with app:srcCompat, the placeholder image dice_1 (added using the tools namespace as follow: tools:src="@drawable/dice_1") isn't shown anymore in the preview panel.

In which lesson and step of the codelab can this issue be found? Android Kotlin Fundamentals 01.3: Image resources and compatibility - Step 6

How to reproduce? Follow the instructions...

Versions

  1. Android Studio 4.0.1
  2. CompileSdk 30 / minSdk 19

codelab: android-kotlin-fundamentals

yorkish commented 4 years ago

DiceRoller.zip