setReadOnly

abstract fun setReadOnly(isReadOnly: Boolean)

Sets view read only if isReadOnly is true.