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

ViewGroup

{% setvar page_path %}dokkatest/platform/ViewGroup.html{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "reference/_kotlin_switcher2.md" %}

class ViewGroup


Summary

Constants

Int

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

Int

This view will get focus before any of its descendants.

Int

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

Public functions

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

Gets the descendant focusability of this view group.

Constants

FOCUS_AFTER_DESCENDANTS

val FOCUS_AFTER_DESCENDANTSInt

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

FOCUS_BEFORE_DESCENDANTS

val FOCUS_BEFORE_DESCENDANTSInt

This view will get focus before any of its descendants.

FOCUS_BLOCK_DESCENDANTS

val FOCUS_BLOCK_DESCENDANTSInt

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

Public functions

getDescendantFocusability

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

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

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

one of FOCUS_BEFORE_DESCENDANTS, FOCUS_AFTER_DESCENDANTS,FOCUS_BLOCK_DESCENDANTS.