setClickable

open fun setClickable(clickable: Boolean)

Sets the clickable state of this view.

On API 26 (Android O) and above, if the view is not clickable, this method also clears the tooltip text to prevent the view from consuming touch events.