{% setvar book_path %}/reference/kotlin/dokkatest/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ViewGroup

class ViewGroup


Summary

Constants

const Int

This view will get focus only if none of its descendants want it.

const Int

This view will get focus before any of its descendants.

const Int

This view will block any of its descendants from getting focus, even if they are focusable.

Public constructors

Public functions

Int
@ViewDebug.ExportedProperty(category = "focus", mapping = [@ViewDebug.IntToString(from = 131072, to = "FOCUS_BEFORE_DESCENDANTS"), @ViewDebug.IntToString(from = 262144, to = "FOCUS_AFTER_DESCENDANTS"), @ViewDebug.IntToString(from = 393216, to = "FOCUS_BLOCK_DESCENDANTS")])
getDescendantFocusability()

Gets the descendant focusability of this view group.

Constants

FOCUS_AFTER_DESCENDANTS

const val FOCUS_AFTER_DESCENDANTS = 262144: Int

This view will get focus only if none of its descendants want it.

FOCUS_BEFORE_DESCENDANTS

const val FOCUS_BEFORE_DESCENDANTS = 131072: Int

This view will get focus before any of its descendants.

FOCUS_BLOCK_DESCENDANTS

const val FOCUS_BLOCK_DESCENDANTS = 393216: Int

This view will block any of its descendants from getting focus, even if they are focusable.

Public constructors

ViewGroup

ViewGroup()

Public functions

getDescendantFocusability

@ViewDebug.ExportedProperty(category = "focus", mapping = [@ViewDebug.IntToString(from = 131072, to = "FOCUS_BEFORE_DESCENDANTS"), @ViewDebug.IntToString(from = 262144, to = "FOCUS_AFTER_DESCENDANTS"), @ViewDebug.IntToString(from = 393216, to = "FOCUS_BLOCK_DESCENDANTS")])
fun getDescendantFocusability(): Int

Gets the descendant focusability of this view group. The descendant focusability defines the relationship between this view group and its descendants when looking for a view to take focus in requestFocus.