Quantcast
Channel: ComposeView with view binding - Stack Overflow
Browsing all 3 articles
Browse latest View live

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 Article



Answer 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 Article

ComposeView 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
Browsing all 3 articles
Browse latest View live




Latest Images