Answer by Bartek for ComposeView with view binding
It turns out that I had two versions of the same layout: portrait and horizontal. I converted the portrait one to Compose by replacing a LinearLayout with a ComposeView. However, in the horizontal...
View ArticleAnswer by susosaurus for ComposeView with view binding
Maybe there is a problem with the way the binding is set up in onCreate of your activity. Are you using something along the lines of the following code? :override fun onCreate(savedInstanceState:...
View ArticleComposeView with view binding
I added a ComposeView in my XML layout file. I use view binding to inflate this file in my Activity. When I try to call binding.myComposeView.setContent { ... } then I get the following compilation...
View Article
More Pages to Explore .....