The members of Android.Views.ViewGroup are listed below.
See Also: Inherited members from Android.Views.View
A constructor used when creating managed representations of JNI objects; called by the runtime. |
const | LayoutModeClipBounds | ViewLayoutMode (0). This constant is a ViewGroup.LayoutMode. |
const | LayoutModeOpticalBounds | ViewLayoutMode (1). This constant is a ViewGroup.LayoutMode. |
const | ClipToPaddingMask | int (34). We clip to padding when FLAG_CLIP_TO_PADDING and FLAG_PADDING_NOT_NULL are set at the same time. |
const | FlagUseChildDrawingOrder | int (1024). Documentation for this section has not yet been entered. |
AlwaysDrawnWithCacheEnabled | bool. Indicates whether this ViewGroup will always try to draw its children using their drawing cache. | |
AnimationCacheEnabled | bool. Indicates whether the children's drawing cache is used during a layout animation. | |
[read-only] | ChildCount | int. Returns the number of children in the group. |
[read-only] | ClipChildren | bool. Returns whether this group's children are clipped to their bounds before drawing. |
[read-only] | ClipToPadding | bool. Check if this ViewGroup is configured to clip child views to its padding. |
DescendantFocusability | DescendantFocusability. Gets the descendant focusability of this view group. | |
[read-only] | FocusedChild | View. Returns the focused child of this view, if any. |
LayoutAnimation | Android.Views.Animations.LayoutAnimationController. Returns the layout animation controller used to animate the group's children. | |
LayoutAnimationListener | Android.Views.Animations.Animation.IAnimationListener. Returns the animation listener to which layout animation events are sent. | |
LayoutMode | ViewLayoutMode. Returns the basis of alignment during layout operations on this ViewGroup: either ViewGroup.LayoutModeClipBounds or ViewGroup.LayoutModeOpticalBounds. | |
LayoutTransition | Android.Animation.LayoutTransition. Gets the LayoutTransition object for this ViewGroup. | |
MotionEventSplittingEnabled | bool. Returns true if MotionEvents dispatched to this ViewGroup can be split to multiple children. | |
[read-only] | NestedScrollAxes | ScrollAxis. Return the current axes of nested scrolling for this ViewGroup. |
PersistentDrawingCache | PersistentDrawingCaches. Returns an integer indicating what types of drawing caches are kept in memory. | |
TouchscreenBlocksFocus | bool. Check whether this ViewGroup should ignore focus requests for itself and its children. | |
TransitionGroup | bool. Returns true if this ViewGroup should be considered as a single entity for removal when executing an Activity transition. |
ChildrenDrawingOrderEnabled | bool. Indicates whether the ViewGroup is drawing its children in the order defined by ViewGroup.GetChildDrawingOrder(int, System.Int32). | |
ChildrenDrawnWithCacheEnabled | bool. Indicates whether the ViewGroup is currently drawing its children using their drawing cache. | |
[read-only] override | ThresholdClass | IntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
[read-only] override | ThresholdType | Type. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
AddStatesFromChildren()Returns whether this ViewGroup's drawable states also include its children's drawable states. | ||
AddView(View) | ||
AddView(View, ViewGroup.LayoutParams)Adds a child view with the specified layout parameters. | ||
AddView(View, int)Adds a child view. | ||
AddView(View, int, ViewGroup.LayoutParams)Adds a child view with the specified layout parameters. | ||
AddView(View, int, int)Adds a child view with this ViewGroup's default layout parameters and the specified width and height. | ||
BringChildToFront(View)Change the z order of the child so it's on top of all other children. | ||
ChildDrawableStateChanged(View)If ViewGroup.AddStatesFromChildren is true, refreshes this group's drawable state (to include the states from its children). | ||
ChildHasTransientStateChanged(View, bool)Called when a child view has changed whether or not it is tracking transient state. | ||
ClearChildFocus(View)Called when a child of this parent is giving up focus | ||
ClearDisappearingChildren()Removes any pending animations for views that have been removed. | ||
DispatchSetActivated(bool)Dispatch setActivated to all of this View's children. | ||
DispatchSetSelected(bool)Dispatch setSelected to all of this View's children. | ||
EndViewTransition(View)This method should always be called following an earlier call to ViewGroup.StartViewTransition(View). | ||
FocusableViewAvailable(View)Tells the parent that a new focusable view has become available. | ||
FocusSearch(View, FocusSearchDirection)Find the nearest view in the specified direction that wants to take focus. | ||
GatherTransparentRegion(Android.Graphics.Region)This is used by the RootView to perform an optimization when the view hierarchy contains one or several SurfaceView. | ||
GenerateLayoutParams(Android.Util.IAttributeSet)Returns a new set of layout parameters based on the supplied attributes set. | ||
GetChildAt(int)Returns the view at the specified position in the group. | ||
static | GetChildMeasureSpec(int, int, int)Does the hard part of measureChildren: figuring out the MeasureSpec to pass to a particular child. | |
GetChildVisibleRect(View, Android.Graphics.Rect, Android.Graphics.Point)Compute the visible part of a rectangular region defined in terms of a child view's coordinates. | ||
IndexOfChild(View)Returns the position in the group of the specified child view. | ||
InvalidateChild(View, Android.Graphics.Rect)Don't call or override this method. | ||
InvalidateChildInParent(int[], Android.Graphics.Rect)Don't call or override this method. | ||
override | Layout(int, int, int, int)Assign a size and position to a view and all of its descendants | |
NotifySubtreeAccessibilityStateChanged(View, View, Android.Views.Accessibility.ContentChangeTypes)Notifies a view parent that the accessibility state of one of its descendants has changed and that the structure of the subtree is different. | ||
OffsetDescendantRectToMyCoords(View, Android.Graphics.Rect)Offset a rectangle that is in a descendant's coordinate space into our coordinate space. | ||
OffsetRectIntoDescendantCoords(View, Android.Graphics.Rect)Offset a rectangle that is in our coordinate space into an ancestor's coordinate space. | ||
OnInterceptHoverEvent(MotionEvent)Implement this method to intercept hover events before they are handled by child views. | ||
OnInterceptTouchEvent(MotionEvent)Implement this method to intercept all touch screen motion events. | ||
OnNestedFling(View, float, float, bool)Request a fling from a nested scroll. | ||
OnNestedPreFling(View, float, float)React to a nested fling before the target view consumes it. | ||
OnNestedPreScroll(View, int, int, int[])React to a nested scroll in progress before the target view consumes a portion of the scroll. | ||
OnNestedScroll(View, int, int, int, int)React to a nested scroll in progress. | ||
OnNestedScrollAccepted(View, View, ScrollAxis)React to the successful claiming of a nested scroll operation. | ||
OnRequestSendAccessibilityEvent(View, Android.Views.Accessibility.AccessibilityEvent)Called when a child has requested sending an Android.Views.Accessibility.AccessibilityEvent and gives an opportunity to its parent to augment the event. | ||
OnStartNestedScroll(View, View, ScrollAxis)React to a descendant view initiating a nestable scroll operation, claiming the nested scroll operation if appropriate. | ||
OnStopNestedScroll(View)React to a nested scroll operation ending. | ||
RecomputeViewAttributes(View)Tell view hierarchy that the global view attributes need to be re-evaluated. | ||
RemoveAllViews()Call this method to remove all child views from the ViewGroup. | ||
RemoveAllViewsInLayout()Called by a ViewGroup subclass to remove child views from itself, when it must first know its size on screen before it can calculate how many child views it will render. | ||
RemoveView(View) | ||
RemoveViewAt(int)Removes the view at the specified position in the group. | ||
RemoveViewInLayout(View)Removes a view during layout. | ||
RemoveViews(int, int)Removes the specified range of views from the group. | ||
RemoveViewsInLayout(int, int)Removes a range of views during layout. | ||
RequestChildFocus(View, View)Called when a child of this parent wants focus | ||
RequestChildRectangleOnScreen(View, Android.Graphics.Rect, bool)Called when a child of this group wants a particular rectangle to be positioned onto the screen. | ||
RequestDisallowInterceptTouchEvent(bool)Called when a child does not want this parent and its ancestors to intercept touch events with ViewGroup.OnInterceptTouchEvent(MotionEvent). | ||
RequestSendAccessibilityEvent(View, Android.Views.Accessibility.AccessibilityEvent)Called by a child to request from its parent to send an Android.Views.Accessibility.AccessibilityEvent. | ||
RequestTransparentRegion(View)Called when a child wants the view hierarchy to gather and report transparent regions to the window compositor. | ||
ScheduleLayoutAnimation()Schedules the layout animation to be played after the next layout pass of this view group. | ||
SetAddStatesFromChildren(bool)Sets whether this ViewGroup's drawable states also include its children's drawable states. | ||
SetClipChildren(bool)By default, children are clipped to their bounds before drawing. | ||
SetClipToPadding(bool)By default, children are clipped to the padding of the ViewGroup. | ||
SetOnHierarchyChangeListener(ViewGroup.IOnHierarchyChangeListener)Register a callback to be invoked when a child is added to or removed from this view. | ||
ShouldDelayChildPressedState()Return true if the pressed state should be delayed for children or descendants of this ViewGroup. | ||
ShowContextMenuForChild(View)Bring up a context menu for the specified view or its ancestors. | ||
StartActionModeForChild(View, ActionMode.ICallback)Start an action mode for the specified view. | ||
StartLayoutAnimation()Runs the layout animation. | ||
StartViewTransition(View)This method tells the ViewGroup that the given View object, which should have this ViewGroup as its parent, should be kept around (re-displayed when the ViewGroup draws its children) even if it is removed from its parent. | ||
UpdateViewLayout(View, ViewGroup.LayoutParams) |
AddViewInLayout(View, int, ViewGroup.LayoutParams)Adds a view during layout. | ||
AddViewInLayout(View, int, ViewGroup.LayoutParams, bool)Adds a view during layout. | ||
AttachLayoutAnimationParameters(View, ViewGroup.LayoutParams, int, int)Subclasses should override this method to set layout animation parameters on the supplied child. | ||
AttachViewToParent(View, int, ViewGroup.LayoutParams)Attaches a view to this view group. | ||
CanAnimate()Indicates whether the view group has the ability to animate its children after the first layout. | ||
CheckLayoutParams(ViewGroup.LayoutParams) | ||
CleanupLayoutState(View)Prevents the specified child to be laid out during the next layout pass. | ||
Debug(int)Prints information about this view in the log output, with the tag View.ViewLogTag. | ||
DetachAllViewsFromParent()Detaches all views from the parent. | ||
DetachViewFromParent(View)Detaches a view from its parent. | ||
DetachViewFromParent(int)Detaches a view from its parent. | ||
DetachViewsFromParent(int, int)Detaches a range of views from their parents. | ||
DispatchFreezeSelfOnly(Android.Util.SparseArray)Documentation for this section has not yet been entered. | ||
DispatchThawSelfOnly(Android.Util.SparseArray)Documentation for this section has not yet been entered. | ||
DrawChild(Android.Graphics.Canvas, View, long)Draw one child of this View Group. | ||
GenerateDefaultLayoutParams()Returns a set of default layout parameters. | ||
GenerateLayoutParams(ViewGroup.LayoutParams)Returns a safe set of layout parameters based on the supplied layout params. | ||
GetChildDrawingOrder(int, int)Returns the index of the child to draw for this iteration. | ||
GetChildStaticTransformation(View, Android.Views.Animations.Transformation)Sets t to be the static transformation of the child, if set, returning a boolean to indicate whether a static transform was set. | ||
MeasureChild(View, int, int)Ask one of the children of this view to measure itself, taking into account both the MeasureSpec requirements for this view and its padding. | ||
MeasureChildren(int, int)Ask all of the children of this view to measure themselves, taking into account both the MeasureSpec requirements for this view and its padding. | ||
MeasureChildWithMargins(View, int, int, int, int)Ask one of the children of this view to measure itself, taking into account both the MeasureSpec requirements for this view and its padding and margins. | ||
abstract | OnLayout(bool, int, int, int, int)Called from layout when this view should assign a size and position to each of its children. | |
OnRequestFocusInDescendants(int, Android.Graphics.Rect)Look for a descendant to call View.RequestFocus on. | ||
RemoveDetachedView(View, bool)Finishes the removal of a detached view. | ||
ResetResolvedLayoutDirection()Documentation for this section has not yet been entered. | ||
ResetResolvedTextDirection()Documentation for this section has not yet been entered. | ||
SetChildrenDrawingCacheEnabled(bool)Enables or disables the drawing cache for each child of this view group. | ||
SetStaticTransformationsEnabled(bool)When this property is set to true, this ViewGroup supports static transformations on children; this causes ViewGroup.GetChildStaticTransformation(View, Android.Views.Animations.Transformation) to be invoked when a child is drawn. |
AnimationEnd | Documentation for this section has not yet been entered. | |
AnimationRepeat | Documentation for this section has not yet been entered. | |
AnimationStart | Documentation for this section has not yet been entered. | |
ChildViewAdded | Documentation for this section has not yet been entered. | |
ChildViewRemoved | Documentation for this section has not yet been entered. |