![]() In this post I’ll do a try to replicate it for Jetpack Compose as possible. ![]() There is an awesome sample project on ConstraintLayout created by that showcases how to build a Google Play Movies detail like layout for the Android View System. Here you have a fully working example I prepared and I’ll be iterating over in other articles to come. You can find it in implementation 'androidx.ui:ui-layout:0.1.0-dev13' and import it like import androidx.ui.layout.ConstraintLayout. That decision turned out to be pretty convenient so it could also be ported into Jetpack Compose now. When ConstraintLayout was coded for the Android View system, logics for rendering (constraints) were decoupled from the ViewGroup with the purpose of making it also work for the layout editor. ![]() Learn how to work with ConstraintLayout in Compose.Įverything listed in this post is part of Jetpack Compose version 0.1.0-dev13, (Compose Developer Preview 2), so it’s quite prone to change over time while the team keeps improving the api surface. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |