Here is an example of the code: ``` val alert = al...
# anko
t
Here is an example of the code:
Copy code
val 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()
                    }
          }
     }
}