{% setvar book_path %}/reference/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/_java_switcher2.md" %}

public class ViewGroup


Summary

Constants

static final @NonNull int

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

static final @NonNull int

This view will get focus before any of its descendants.

static final @NonNull int

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

Public methods

@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")]) @NonNull int

Gets the descendant focusability of this view group.

Constants

FOCUS_AFTER_DESCENDANTS

@NonNull
public static final @NonNull int FOCUS_AFTER_DESCENDANTS

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

FOCUS_BEFORE_DESCENDANTS

@NonNull
public static final @NonNull int FOCUS_BEFORE_DESCENDANTS

This view will get focus before any of its descendants.

FOCUS_BLOCK_DESCENDANTS

@NonNull
public static final @NonNull int FOCUS_BLOCK_DESCENDANTS

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

Public methods

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

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.