Using DSL, Anko also supports creating dynamic layouts. Just to give you an idea, the following code can create a simple EditText with a button following it:
verticalLayout { val name = editText() button("Say Hello") { onClick { toast("Hello, ${name.text}!") } } }
And the screen will look like the following: