AnchoredDraggable | Compose Tips Source link
A guide on how to define string routes safely Traditionally, navigation in Compose relies on defining routes as strings, which opens up a lot of flexibility but also introduces potential risks if not handled carefully. In this guide, we’ll walk through how to safely define string routes, break down the structure of these routes, and […]
I need to migrate my old java code that creates a Drawable instance which is a gradient with a starting color in the upper part and a finishing color in the bottom part. It worked perfectly in java, but after migrating the code to kotlin and compose, getDrawable function returns an empty transparent drawable: override […]
submitted by /u/spierce7 [comments] Source link
In Jetpack Compose, a modern UI toolkit for Android, side effects are ways to handle changes outside the UI hierarchy that need to be reflected in your Compose functions or to ensure certain actions take place as a result of state changes. Side effects help bridge the gap between the declarative nature of Compose and […]
Custom Adaptive layouts in Compose Source link
Custom Adaptive layouts in Compose | Spotlight Week Source link
Posted by Rebecca Franks – Developer Relations Engineer This blog post is part of our series: Adaptive Spotlight Week where we provide resources—blog posts, videos, sample code, and more—all designed to help you adapt your apps to phones, foldables, tablets, ChromeOS and even cars. You can read more in the overview of the Adaptive Spotlight […]
Posted by Alex Vanyo – Developer Relations Engineer Adaptive Spotlight Week With Android powering a diverse range of devices, users expect a seamless and optimized experience across their foldables, tablets, ChromeOS, and even cars. To meet these expectations, developers need to build their apps with multiple screen sizes and form factors in mind. Changing how […]
12 min read · Sep 22, 2024 Jetpack Compose’s animation API is both powerful and enjoyable to work with. And when combined with the graphicsLayer() and drawing modifiers, it really open up possibilities for creating some really cool animations. In this article, we’ll dive into exactly that by exploring how to create the following loading […]