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
trafficstars

Using `SeekableTransitionState` and `rememberUpdatedTransition()` with `Transition#AnimatedContent`, we can control the shared element seeking state, In this example, a Slider is added to allow for seeking between Home and Details state....

File: com.example.compose.snippets.layouts.ConstraintLayoutSnippets.kt ``` fun DecoupledConstraintLayout() { BoxWithConstraints { val constraints = if (minWidth < 600.dp) { decoupledConstraints(margin = 16.dp) // Portrait constraints } else { decoupledConstraints(margin = 32.dp) // Landscape...

…uides/content/show-hide-password?hl=en (show/hide password based on user toggle). Snippet builds as-is from DAC page.

…ontent/enable-snap-scrolling?hl=en (Create a button to enable snap scrolling)to the repo.

…uides/content/display-nested-list?hl=en (nested horizontal scrolling in vertical list ). Snippet builds as-is from DAC page.

…uides/content/animate-text?hl=en (Animate text character-by-character). Code taken from riggaroo gist at https://www.google.com/url?sa=D&q=https%3A%2F%2Fgist.github.com%2Friggaroo%2F668868c954c4a1e9b29fa57a762e63b5

…per.android.com/quick-guides/content/create-scrollable-grid?hl=en