Skip to content

Instantly share code, notes, and snippets.

@cp-radhika-s
Created September 8, 2022 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cp-radhika-s/deb9b946dafb1824f62ca0994ffdfb40 to your computer and use it in GitHub Desktop.
Save cp-radhika-s/deb9b946dafb1824f62ca0994ffdfb40 to your computer and use it in GitHub Desktop.
val context = LocalContext.current
val motionScene = remember {
context.resources
.openRawResource(R.raw.motion_scene)
.readBytes()
.decodeToString()
}
MotionLayout(
motionScene = MotionScene(content = motionScene),
) { ... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment