Open SilenceConcentrate opened 6 years ago
alert("详细信息") { customView { verticalLayout { verticalPadding = dip(16) textInputEditText { setText(it.address) }.lparams(width = matchParent) { margin = dip(16) } textInputEditText { setText(it.box.toString()) }.lparams(width = matchParent) { margin = dip(16) } } } noButton { } positiveButton("保存") { } }.show()
Unfortunately anko preview supports only AnkoComponents. https://github.com/Kotlin/anko/wiki/Anko-Layouts#ankocomponent
thanks