{% setvar book_path %}/reference/dokkatest/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public class ViewGroup
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. |
@NonNull
public static final @NonNull int FOCUS_AFTER_DESCENDANTS
This view will get focus only if none of its descendants want it.
@NonNull
public static final @NonNull int FOCUS_BEFORE_DESCENDANTS
This view will get focus before any of its 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.
@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 |