tania
08/30/2018, 7:08 PMval alert = alert {
customView {
verticalLayout {
val collectionName = editText {
textSize = 16f
textColor = Color.BLACK
bottomPadding = dip(10)
}.lparams(width = matchParent) {
leftMargin = dip(16)
rightMargin = dip(16)
}
collectionName.textChangedListener {
afterTextChanged { s -> run { createCollectionNameIsEmpty.value = s.toString().isEmpty() } }
}
positiveButton(context.getString(com.compass.compassuilibrary.R.string.create_button)) {
it.dismiss()
}
}
}
}