setReadOnly

fun EditText.setReadOnly(readOnly: Boolean, inputType: Int = InputType.TYPE_NULL)