ViewModel To View in Jetpack Compose | by Aldo Surya Ongko | Aug, 2022

Learn how to apply ViewModel to View from the MVVM architecture in Jetpack Compose Photo by Stephen Frank on Unsplash You can find the previous tutorials on Jetpack Compose below: In this article, we will learn to implement from ViewModel section to the View section in Jetpack Compose. From my last article, we learned how … Read more

MVVM in Jetpack Compose (Part 4). We are going to learn about how to… | by Aldo Surya Ongko | Aug, 2022

We are going to learn about how to apply MVVM to Jetpack Compose You can find the previous article about Jetpack Compose tutorial here: In this article, we will learn how to apply MVVM to Android applications using Jetpack Compose. Photo by Markus Winkler on Unsplash MVVM, aka Model-View-ViewModel is a software architecture pattern that … Read more

Is Jetpack Compose Ready for You? | by tomerpacific | Aug, 2022

Exploring updates a year after its release Photo by Mike van den Bos on Unsplash Android’s Jetpack Compose version 1.0 was released nearly a year ago on July 28th. It promised a new way to build UI in our Android applications and was met with much enthusiasm. It has been regularly updated and maintained since … Read more

Layouting in Jetpack Compose. Learn how to create a layout screen in… | by Aldo Surya Ongko | Jul, 2022

Learn how to create a layout screen in Android using Jetpack Compose Photo by Masakaze Kawakami on Unsplash Before Jetpack Compose exists, we define our layout in XML using LinearLayout, RelativeLayout, ConstraintLayout. So how do we apply in Jetpack Compose? From my last article, we learned the basics of Jetpack Compose. In this article, we … Read more

Jetpack Compose Navigation in a Multi-module Project | by Maxim Marashan | Jul, 2022

Organizing your Android codebase with Compose Navigation Photo by William Bout on Unsplash When I started the development of a new application I took advantage of the opportunity to make UI right on Jetpack Compose. As always, I had to solve the issue of choosing a multi-module architecture and a navigation mechanism. On the one … Read more

Touch Interactions in Jetpack Compose | by Alex Frank | Jul, 2022

Build a draggable Labeled Range Slider Photo by Andrej Lišakov on Unsplash After we learned how to draw different shapes on a Canvas in the first part of the series, let’s have a look at how to handle touch interaction in this second part. Just as a reminder, with this topic we will be able … Read more

Fixing Problems of Jetpack Compose Navigation | by Vitaly Peryatin | Jul, 2022

Common pitfalls of navigation in Jetpack Compose and how we handled them Our team has been using Compose for six months in the Afterglow app. In this article, I would like to share the difficulties we have faced and present the solutions we have found. I found 3 of the most popular navigation solutions: Jetpack … Read more

Patch Gaps in Current Compose API Using Reflection | by Jamal Mulla

Fix a small niggle in Jetpack Compose Photo by Serge Kutuzov on Unsplash Recently, I decided to redesign an old Android app with Jetpack Compose. The new Compose system is a significant improvement over the previous View system but it is still rather new and there are missing features. One such gap I came across … Read more

android – Jetpack Compose Navigation: How to handle backstack in multi-graph app?

I have two graphs in my app. One is AuthNavGraph which contains auth-related screens like login and signup, and the other is MainNavGraphwhich contains BottomNavigationViewwith top-level destinations. Here are my destinations : interface RubiBrandsNavigationDestination { val route: String } sealed class Destination( override val route: String, val arguments: List<NamedNavArgument> = emptyList() ) : RubiBrandsNavigationDestination { … Read more

android – Jetpack Compose. Navigation IllegalStateException

Getting this exception when I quickly switch between destinations (ie Bottom navigation: HomeScreen -> SettingsScreen -> HomeScreen). Navigation is implemented according to the example in the documentation and sampleApp. Perhaps this is a Jetpack Compose bug, since I did not find a similar error on the Internet. Screens: sealed class Screen( val route: String, @StringRes … Read more