Is it possible to mix declarative and imperative paradigms for Android UI development?

117 Views Asked by At

Is it possible to mix declarative and imperative paradigms for Android UI development ?

1- In « traditional » Android development, Java + XML are used to create interface elements (in a Rather static way).

2- With Kotlin + « Jetpack Compose » it is possible to create UI elements dynamically.

Is there a way to mix and match 1. And 2. ?

1

There are 1 best solutions below

1
On

ComposeView in traditional android or AndroidView in compose