google-developer-training / android-basics-kotlin-mars-photos-app

Apache License 2.0
91 stars 193 forks source link

Android Basics: Load and display images from the Internet #175

Closed Aikain closed 8 months ago

Aikain commented 1 year ago

name: Android Basics Unit 4 issue about: Report problems with the Android Basics Unit 4 codelabs title: 'Android Basics Unit 4 issue:' labels: '' assignees: ''


URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-training-internet-images#2

In which task and step of the codelab can this issue be found? Chapter "Use Binding Adapters", example: "Example of a Binding Adapter:"

Describe the problem Extra }:

@BindingAdapter("imageUrl")
fun bindImage(imgView: ImageView, imgUrl: String?) {
    imgUrl?.let {
        // Load the image in the background using Coil.
        }  // <-- this
    }
}

Versions Android Studio version: - API version of the emulator: -

Additional information image