ViewRootImpl

Class of android.view · ViewRootImpl.java · Android's reference

public final class ViewRootImpl implements ViewParent

A window's root: the parent of its decor view. Its traversal measures, lays out and records the tree, and the host draws the recording; input from the host comes in here. Android's ViewRootImpl without a WindowManager service, a surface or a render thread.

Page 1 2

Members

public ViewRootImpl(Context context) source
public void setView(View view, WindowManager.LayoutParams attrs, android.window.OnBackInvokedDispatcher dispatcher) source
public void setDisplay(Display display) source
public View getView() source
public WindowManager.LayoutParams getWindowAttributes() source

the window's layout parameters, as setView gave them (null for none)

public void die() source
public boolean frameContains(float x, float y) source

whether the window's frame holds a point of the display, where a touch there goes (Host.touchTarget)

public int windowFlags() source

the window's flags, WindowManager.LayoutParams.FLAG_*: none for a window without params

public int width() source
public int height() source
public void resize(int width, int height) source

The host window's new size: laid out again.

ViewParent

public void requestLayout() source
public boolean isLayoutRequested() source
public void onDescendantInvalidated(View child, View target) source
public void invalidateChild(View child, Rect r) source
public ViewParent invalidateChildInParent(int[] location, Rect r) source
public ViewParent getParent() source
public void requestTransparentRegion(View child) empty body source
public void requestChildFocus(View child, View focused) empty body source
public void recomputeViewAttributes(View child) empty body source
public void clearChildFocus(View child) empty body source
public boolean getChildVisibleRect(View child, Rect r, android.graphics.Point offset) source
public View focusSearch(View focused, int direction) source
public void bringChildToFront(View child) empty body source
public void focusableViewAvailable(View v) empty body source
public boolean showContextMenuForChild(View originalView) source
public boolean showContextMenuForChild(View originalView, float x, float y) source
public ActionMode startActionModeForChild(View originalView, ActionMode.Callback callback) source
public ActionMode startActionModeForChild(View originalView, ActionMode.Callback callback, int type) source
public void childDrawableStateChanged(View child) empty body source
public void requestDisallowInterceptTouchEvent(boolean disallowIntercept) empty body source
public boolean requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) source
public boolean requestSendAccessibilityEvent(View child, android.view.accessibility.AccessibilityEvent event) source
public void childHasTransientStateChanged(View child, boolean hasTransientState) empty body source
public void notifySubtreeAccessibilityStateChanged(View child, View source, int changeType) empty body source
public boolean canResolveLayoutDirection() source

Page 1 2


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.