google-developer-training / basic-android-kotlin-compose-training-woof

Apache License 2.0
54 stars 81 forks source link

Simple Animation with Jetpack Compose - (Optional) #101

Open Akronix opened 1 month ago

Akronix commented 1 month ago

URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-compose-woof-animation

In which task and step of the codelab can this issue be found? step 7: Optional: Experiment with other animations

Describe the problem I followed all the instructions of the step 7 to create an animation with color change. If I run the app in the in the Android emulator, I can see the animation. However, I can't experiment the animation in the AppPreview.

Steps to reproduce? Copy code from step 7 and open the preview. When expanding cards, the background color should change, but it does not. Try running the emulator and verify it does change there.

Versions Android Studio version: Android Studio Koala | 2024.1.1 Patch 1 Build #AI-241.18034.62.2411.12071903, built on July 10, 2024 Runtime version: 17.0.11+0-17.0.11b1207.24-11852314 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Linux 6.8.0-39-generic GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 4 Registry: ide.experimental.ui=true Non-Bundled Plugins: com.intellij.plugins.gnomekeymap (213.4250.391) Current Desktop: Unity:Unity7:ubuntu

API version of the emulator: API level: 35-ext13

Additional information Same code:

Preview:

image

Emulator:

image

aHardReset commented 2 weeks ago

Same issue here, the color change only when running the app in the emulator.