Sdílet prostřednictvím


IViewParent Interface

Definition

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

[Android.Runtime.Register("android/view/ViewParent", "", "Android.Views.IViewParentInvoker")]
public interface IViewParent : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/view/ViewParent", "", "Android.Views.IViewParentInvoker")>]
type IViewParent = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Derived
Attributes
Implements

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.

Java documentation for android.view.ViewParent.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsLayoutDirectionResolved

Tells if this view parent layout direction is resolved.

IsLayoutRequested

Indicates whether layout was requested on this view parent.

IsTextAlignmentResolved

Tells if this view parent text alignment is resolved.

IsTextDirectionResolved

Tells if this view parent text direction is resolved.

JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
LayoutDirection

Return this view parent layout direction.

Parent

Returns the parent if it exists, or null.

ParentForAccessibility

Gets the parent of a given View for accessibility.

PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)
TextAlignment

Return this view parent text alignment.

TextDirection

Return this view parent text direction.

Methods

BringChildToFront(View)

Change the z order of the child so it's on top of all other children.

CanResolveLayoutDirection()

Tells if this view parent can resolve the layout direction.

CanResolveTextAlignment()

Tells if this view parent can resolve the text alignment.

CanResolveTextDirection()

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).

Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
FindOnBackInvokedDispatcherForChild(View, View)

Walk up the View hierarchy to find the nearest OnBackInvokedDispatcher.

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

GetChildVisibleRect(View, Rect, Point)

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)

All or part of a child is dirty and needs to be redrawn.

KeyboardNavigationClusterSearch(View, FocusSearchDirection)

Find the nearest keyboard navigation cluster in the specified direction.

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.

OnDescendantInvalidated(View, View)

The target View has been invalidated, or has had a drawing property changed that requires the hierarchy to re-render.

OnNestedFling(View, Single, Single, Boolean)

Request a fling from a nested scroll.

OnNestedPreFling(View, Single, Single)

React to a nested fling before the target view consumes it.

OnNestedPrePerformAccessibilityAction(View, Action, Bundle)

React to an accessibility action delegated by a target descendant view before the target processes 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)

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)

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) 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)

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.

SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
ShowContextMenuForChild(View, Single, Single)

Shows the context menu for the specified view or its ancestors anchored to the specified view-relative coordinate.

ShowContextMenuForChild(View)

Shows the context menu for the specified view or its ancestors.

StartActionModeForChild(View, ActionMode+ICallback, ActionModeType)

Start an action mode for the specified view with the default type ActionMode#TYPE_PRIMARY.

StartActionModeForChild(View, ActionMode+ICallback)

Start an action mode for the specified view with the default type ActionMode#TYPE_PRIMARY.

UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to