Package-level declarations
Properties
Returns a Sequence of the parent chain of this view by repeatedly calling View.getParent. An unattached view will return a zero-element sequence.
Returns a Sequence over the child views in this view group recursively.
Returns true when this view's visibility is View.INVISIBLE, false otherwise.
Returns true when this view's visibility is View.VISIBLE, false otherwise.
Returns the bottom margin if this view's ViewGroup.LayoutParams is a ViewGroup.MarginLayoutParams, otherwise 0.
Returns the end margin if this view's ViewGroup.LayoutParams is a ViewGroup.MarginLayoutParams, otherwise 0.
Returns the left margin if this view's ViewGroup.LayoutParams is a ViewGroup.MarginLayoutParams, otherwise 0.
Returns the right margin if this view's ViewGroup.LayoutParams is a ViewGroup.MarginLayoutParams, otherwise 0.
Returns the start margin if this view's ViewGroup.LayoutParams is a ViewGroup.MarginLayoutParams, otherwise 0.
Returns the top margin if this view's ViewGroup.LayoutParams is a ViewGroup.MarginLayoutParams, otherwise 0.
Functions
Performs the given action when this view is attached to a window. If the view is already attached to a window the action will be performed immediately, otherwise the action will be performed after the view is next attached.
Performs the given action when this view is detached from a window. If the view is not attached to a window the action will be performed immediately, otherwise the action will be performed after the view is detached from its current window.
Performs the given action when this view is laid out. If the view has been laid out and it has not requested a layout, the action will be performed straight away, otherwise the action will be performed after the view is next laid out.
Performs the given action when this view is next laid out.
Performs the given action when the view tree is about to be drawn.
Performs the given action on each item in this menu, providing its sequential index.
Performs the given action on each view in this view group, providing its sequential index.
Returns true if this menu contains one or more items.
Returns true if this view group contains one or more views.
Returns a MutableIterator over the items in this menu.
Returns a MutableIterator over the views in this view group.
Adds view to this view group.
Version of View.postDelayed which re-orders the parameters, allowing the action to be placed outside of parentheses.
Version of View.postOnAnimationDelayed which re-orders the parameters, allowing the action to be placed outside of parentheses.
Removes the menu item at the specified index.
Sets the margins in the ViewGroup's MarginLayoutParams. This version of the method sets all axes to the provided size.
Sets the view's padding. This version of the method sets all axes to the provided size.
Executes block with a typed version of the View's layoutParams and reassigns the layoutParams with the updated version.
Executes block with the View's layoutParams and reassigns the layoutParams with the updated version.
Updates the margins in the ViewGroup's ViewGroup.MarginLayoutParams. This version of the method allows using named parameters to just set one or more axes.
Updates the relative margins in the ViewGroup's MarginLayoutParams. This version of the method allows using named parameters to just set one or more axes.