snippets icon indicating copy to clipboard operation
snippets copied to clipboard

Main repository for snippets surfaced on developer.android.com.

Results 53 snippets issues
Sort by recently updated
recently updated
newest added

This eliminates storing state outside and directly uses the navigator as the source of truth. This also gets rid of the Modifier for AnimatedPane as it's no longer a required...

Add snippets for the Shared element animation documentation.

https://github.com/android/snippets/blob/7925f9d19a3a4bca15ef68892ea4938da6157f85/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/pointerinput/UnderstandGesturesSnippets.kt#L151-L166 Only detectDragGestures was works

``` @Preview @Composable fun AnimatedVisibilityCookbook() { var visible1 by remember { mutableStateOf(true) } var visible2 by remember { mutableStateOf(true) } Row( modifier = Modifier.padding(top = 20.dp).fillMaxWidth(), horizontalArrangement = Arrangement.spacedBy(6.dp) )...

https://github.com/android/snippets/blob/87948ac8ef0173a1562ed43d58801d76e8387f99/.github/workflows/build.yml#L31-L34 The checkout build step uses a secret PAT, which forks don't have access to, so the build step immediately fails for any PRs opened from a fork. Example PR:...

Testing a commit from a fork to see if GH actions pass.

The latest couple of commits on `main` has CLA issues from @compose-devrel-github-bot. Opening this to track addressing this issue