Image for post
Image for post
Photo by Andrew Neel on Unsplash

We previously looked at how to handle states inside a Composable with the quantity selection component. In this article, we’ll see how to make a scrollable list. When it comes to display a list of elements, we need to use a RecyclerView with an adapter to define each item. This basic feature can become hard for so many cases but Jetpack Compose gives a new way to display a scrollable list!

Disclaimer: All source code is developed with Compose 1.0.0-alpha02. Because Jetpack Compose is still in alpha, some source code may change with new versions.

Scrollable Compose components

Jetpack Compose offers two ways…


Image for post
Image for post
Photo by Tyler Franta on Unsplash

We previously looked at how to write conditional composable with the price component. In this article, we’ll develop a new component, named quantity selection, and see how we can handle an internal state inside and how to get its value when a user interact with it.

Disclaimer: All source code exposed here has been developed with artifact 0.1.0-dev17 of Compose. Because Jetpack Compose is still in an early developer preview, note that some source code may change with new versions.

Quantity selection component


Image for post
Image for post
Photo by Fabian Grohs on Unsplash

Jetpack Compose is the new future UI toolkit to develop views in Android development. In this article, we’ll see how to create a custom view who reacts depending on a condition from the model object in input. If you don’t know Jetpack Compose at all, I advise you to read the official documentation first on Android documentation website.

Disclaimer: All source code exposed here has been developed with artifact 0.1.0-dev14 of Compose. Because Jetpack Compose is still in an early developer preview, note that some source code may change with new versions.

Price component

At Decathlon, each product has a price and…

Gérard Paligot

Technical Architect @Decathlon

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store