setFocusable

open override fun setFocusable(focusable: Boolean)

Set whether this view can receive the focus.

Setting this to false will also ensure that this view is not focusable in touch mode.

Parameters

focusable

If true, this view can receive the focus.


@RequiresApi(value = 26)
open override fun setFocusable(focusable: Int)

Set whether this view can receive the focus.