Android Guides | Samples

Android.Views.IViewParent

Defines the responsibilities for a class that will be a parent of a View.

See Also: IViewParent

Syntax

[Android.Runtime.Register("android/view/ViewParent", "", "Android.Views.IViewParentInvoker")]
public interface IViewParent : IJavaObject, IDisposable

Remarks

Defines the responsibilities for a class that will be a parent of a View. This is the API that a view sees when it wants to interact with its parent.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Views.IViewParent are listed below.

Public Properties

[read-only]
IsLayoutDirectionResolvedBoolean. Tells if this view parent layout direction is resolved.
[read-only]
IsLayoutRequestedBoolean. Indicates whether layout was requested on this view parent.
[read-only]
IsTextAlignmentResolvedBoolean. Tells if this view parent text alignment is resolved.
[read-only]
IsTextDirectionResolvedBoolean. Tells if this view parent text direction is resolved.
[read-only]
LayoutDirectionLayoutDirection. Return this view parent layout direction.
[read-only]
ParentIViewParent. Returns the parent if it exists, or null.
[read-only]
ParentForAccessibilityIViewParent. Gets the parent of a given View for accessibility.
[read-only]
TextAlignmentTextAlignment. Return this view parent text alignment.
[read-only]
TextDirectionTextDirection. Return this view parent text direction.

Public Methods

BringChildToFront(View)
Change the z order of the child so it's on top of all other children.
CanResolveLayoutDirection() : Boolean
Tells if this view parent can resolve the layout direction.
CanResolveTextAlignment() : Boolean
Tells if this view parent can resolve the text alignment.
CanResolveTextDirection() : Boolean
Tells if this view parent can resolve the text direction.
ChildDrawableStateChanged(View)
This method is called on the parent when a child's drawable state has changed.
ChildHasTransientStateChanged(View, Boolean)
Called when a child view now has or no longer is tracking transient state.
ClearChildFocus(View)
Called when a child of this parent is giving up focus
CreateContextMenu(IContextMenu)
Have the parent populate the specified context menu if it has anything to add (and then recurse on its parent).
FocusableViewAvailable(View)
Tells the parent that a new focusable view has become available.
FocusSearch(View, FocusSearchDirection) : View
Find the nearest view in the specified direction that wants to take focus
GetChildVisibleRect(View, Rect, Point) : Boolean
Compute the visible part of a rectangular region defined in terms of a child view's coordinates.
InvalidateChild(View, Rect)
All or part of a child is dirty and needs to be redrawn.
InvalidateChildInParent(Int32[], Rect) : IViewParent
All or part of a child is dirty and needs to be redrawn.
NotifySubtreeAccessibilityStateChanged(View, View, 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.
OnNestedFling(View, Single, Single, Boolean) : Boolean
Request a fling from a nested scroll.
OnNestedPreFling(View, Single, Single) : Boolean
React to a nested fling before the target view consumes it.
OnNestedPreScroll(View, Int32, Int32, Int32[])
React to a nested scroll in progress before the target view consumes a portion of the scroll.
OnNestedScroll(View, Int32, Int32, Int32, Int32)
React to a nested scroll in progress.
OnNestedScrollAccepted(View, View, ScrollAxis)
React to the successful claiming of a nested scroll operation.
OnStartNestedScroll(View, View, ScrollAxis) : Boolean
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.
RequestChildFocus(View, View)
Called when a child of this parent wants focus
RequestChildRectangleOnScreen(View, Rect, Boolean) : Boolean
Called when a child of this group wants a particular rectangle to be positioned onto the screen.
RequestDisallowInterceptTouchEvent(Boolean)
Called when a child does not want this parent and its ancestors to intercept touch events with ViewGroup.OnInterceptTouchEvent(MotionEvent).
RequestFitSystemWindows()
Ask that a new dispatch of View.FitSystemWindows(Rect) be performed.
RequestLayout()
Called when something has changed which has invalidated the layout of a child of this view parent.
RequestSendAccessibilityEvent(View, AccessibilityEvent) : Boolean
Called by a child to request from its parent to send an AccessibilityEvent.
RequestTransparentRegion(View)
Called when a child wants the view hierarchy to gather and report transparent regions to the window compositor.
ShowContextMenuForChild(View) : Boolean
Bring up a context menu for the specified view or its ancestors.
StartActionModeForChild(View, ActionMode+ICallback) : ActionMode
Start an action mode for the specified view with the default type ActionMode.TYPE_PRIMARY.