Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple Animation with Jetpack Compose #88

Open
hhasert opened this issue Feb 16, 2024 · 0 comments
Open

Simple Animation with Jetpack Compose #88

hhasert opened this issue Feb 16, 2024 · 0 comments

Comments

@hhasert
Copy link

hhasert commented Feb 16, 2024

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-woof-animation?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-3-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-woof-animation#6

In which task and step of the codelab can this issue be found?
Changing the color :
@composable
fun DogItem(
dog: Dog,
modifier: Modifier = Modifier
) {
...
Card(
...
) {
Column(
modifier = Modifier
.animateContentSize(
...
)
)
.background(color = color)
) {...}
}

Describe the problem
The preview does not show the color change, running the app shows it works like designed

Steps to reproduce?
Just follow the codelab and at step 7 - [optional] Experiment with other animations look at the preview animated, it only shows green for collapsed and expanded. When you run the app you see that it works as depicted in the codelab for the preview. Probably the codelab is fine, but in this Android studio this is broken in the preview ?
Screenshot 2024-02-16 150146

Versions
Android Studio version:
Android Studio Hedgehog | 2023.1.1 Patch 2
Build #AI-231.9392.1.2311.11330709, built on January 19, 2024
Runtime version: 17.0.7+0-b2043.56-10550314 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry:
external.system.auto.import.disabled=true
debugger.new.tool.window.layout=true
ide.text.editor.with.preview.show.floating.toolbar=false
ide.experimental.ui=true

Non-Bundled Plugins:
com.github.elyspio.swaggercodegen (0.6.1)

API version of the emulator:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant