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

ViewGroup

public class ViewGroup


Summary

Constants

static final int

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

static final int

This view will get focus before any of its descendants.

static final int

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

Public constructors

Public methods

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

public static final int FOCUS_AFTER_DESCENDANTS = 262144

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

FOCUS_BEFORE_DESCENDANTS

public static final int FOCUS_BEFORE_DESCENDANTS = 131072

This view will get focus before any of its descendants.

FOCUS_BLOCK_DESCENDANTS

public static final int FOCUS_BLOCK_DESCENDANTS = 393216

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

Public constructors

ViewGroup

public ViewGroup()

Public methods

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")])
public int getDescendantFocusability()

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.