{% setvar book_path %}/reference/kotlin/dokkatest/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class ViewGroup
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. |
val FOCUS_AFTER_DESCENDANTS: Int
This view will get focus only if none of its descendants want it.
val FOCUS_BEFORE_DESCENDANTS: Int
This view will get focus before any of its descendants.
val FOCUS_BLOCK_DESCENDANTS: Int
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")])
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 |