Methods Summary |
---|
public void | bringChildToFront(View child)Change the z order of the child so it's on top of all other children
|
public void | childDrawableStateChanged(View child)This method is called on the parent when a child's drawable state
has changed.
|
public void | clearChildFocus(View child)Called when a child of this parent is giving up focus
|
public void | createContextMenu(ContextMenu menu)Have the parent populate the specified context menu if it has anything to
add (and then recurse on its parent).
|
public View | focusSearch(View v, int direction)Find the nearest view in the specified direction that wants to take focus
|
public void | focusableViewAvailable(View v)Tells the parent that a new focusable view has become available. This is
to handle transitions from the case where there are no focusable views to
the case where the first focusable view appears.
|
public boolean | getChildVisibleRect(View child, android.graphics.Rect r, android.graphics.Point offset)
|
public android.view.ViewParent | getParent()Returns the parent if it exists, or null.
|
public void | invalidateChild(View child, android.graphics.Rect r)All or part of a child is dirty and needs to be redrawn.
|
public android.view.ViewParent | invalidateChildInParent(int[] location, android.graphics.Rect r)All or part of a child is dirty and needs to be redrawn.
The location array is an array of two int values which respectively
define the left and the top position of the dirty child.
This method must return the parent of this ViewParent if the specified
rectangle must be invalidated in the parent. If the specified rectangle
does not require invalidation in the parent or if the parent does not
exist, this method must return null.
When this method returns a non-null value, the location array must
have been updated with the left and top coordinates of this ViewParent.
|
public boolean | isLayoutRequested()Indicates whether layout was requested on this view parent.
|
public void | recomputeViewAttributes(View child)Tell view hierarchy that the global view attributes need to be
re-evaluated.
|
public void | requestChildFocus(View child, View focused)Called when a child of this parent wants focus
|
public boolean | requestChildRectangleOnScreen(View child, android.graphics.Rect rectangle, boolean immediate)Called when a child of this group wants a particular rectangle to be
positioned onto the screen. {@link ViewGroup}s overriding this can trust
that:
- child will be a direct child of this group
- rectangle will be in the child's coordinates
{@link ViewGroup}s overriding this should uphold the contract:
- nothing will change if the rectangle is already visible
- the view port will be scrolled only just enough to make the
rectangle visible
|
public void | requestDisallowInterceptTouchEvent(boolean disallowIntercept)Called when a child does not want this parent and its ancestors to
intercept touch events with
{@link ViewGroup#onInterceptTouchEvent(MotionEvent)}.
This parent should pass this call onto its parents. This parent must obey
this request for the duration of the touch (that is, only clear the flag
after this parent has received an up or a cancel.
|
public void | requestLayout()Called when something has changed which has invalidated the layout of a
child of this view parent. This will schedule a layout pass of the view
tree.
|
public void | requestTransparentRegion(View child)Called when a child wants the view hierarchy to gather and report
transparent regions to the window compositor. Views that "punch" holes in
the view hierarchy, such as SurfaceView can use this API to improve
performance of the system. When no such a view is present in the
hierarchy, this optimization in unnecessary and might slightly reduce the
view hierarchy performance.
|
public boolean | showContextMenuForChild(View originalView)Bring up a context menu for the specified view or its ancestors.
In most cases, a subclass does not need to override this. However, if
the subclass is added directly to the window manager (for example,
{@link ViewManager#addView(View, android.view.ViewGroup.LayoutParams)})
then it should override this and show the context menu.
|