google-developer-training / basic-android-kotlin-compose-birthday-card-app

Apache License 2.0
99 stars 76 forks source link

First Android app: Android Basics with Compose #655

Closed DracoVenturus closed 1 month ago

DracoVenturus commented 1 month ago

URL of codelab Codelab link

In which task and step of the codelab can this issue be found? Create your first Android app, steps 4 and 7

Describe the problem The name does not update in the preview when I do as requested in steps 4 and 7, I.E. updating it in fun GreetingPreview; it only does if I update it in fun onCreate

Steps to reproduce?

  1. Do as described in step 4 or in step 7's Code snippet for review
  2. Update the preview
  3. The name remains the one in fun onCreate

Versions Android Studio version: Iguana | 2023.2.1 Patch 2 API version of the emulator:

Additional information Include screenshots if they would be useful in clarifying the problem.

image

image

johnshea commented 1 month ago

Hi @DracoVenturus

Thank you for writing in.

From you screenshots, you are only viewing the emulator. You are not viewing the preview which is why you are not seeing it.

You need to click either "Split" or "Design" as indicated in the following image.

Screenshot 2024-04-16 at 11 34 08 AM

Hope you are enjoying the course!

Regards.

DracoVenturus commented 1 month ago

You are so very right @johnshea I was seeing what I wanted to see instead of what I actually had to :-) Yes I like the course, I will be a very slow learner, but a learner nonetheless!