I want to see a complex example of AndroidView inc...
# compose
a
I want to see a complex example of AndroidView include update
Copy code
AndroidView(
    factory = { context ->

        TextView(context).apply {
            text = "Initial Value"
        }
    },
    update = {
        it.text =  message
    }
)
a
@nglauber Do you have resource to understand AndroidView other than this
n
No… The docs were enough for me… I’m working on a real project 100% compose. I used
AndroidView
twice: for WebView and DatePicker. For both cases, the
factory
function was enough. Because the
update
function is just to notify when the layout is inflated.
a
Thank you