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
public ViewRootImpl(Context context) sourcepublic void setView(View view, WindowManager.LayoutParams attrs, android.window.OnBackInvokedDispatcher dispatcher) sourcepublic void setDisplay(Display display) sourcepublic View getView() sourcepublic WindowManager.LayoutParams getWindowAttributes() sourcethe window's layout parameters, as setView gave them (null for none)
public void die() sourcepublic boolean frameContains(float x, float y) sourcewhether the window's frame holds a point of the display, where a touch there goes (Host.touchTarget)
public int windowFlags() sourcethe window's flags, WindowManager.LayoutParams.FLAG_*: none for a window without params
public int width() sourcepublic int height() sourcepublic void resize(int width, int height) sourceThe host window's new size: laid out again.
public void requestLayout() sourcepublic boolean isLayoutRequested() sourcepublic void onDescendantInvalidated(View child, View target) sourcepublic void invalidateChild(View child, Rect r) sourcepublic ViewParent invalidateChildInParent(int[] location, Rect r) sourcepublic ViewParent getParent() sourcepublic void requestTransparentRegion(View child) empty body sourcepublic void requestChildFocus(View child, View focused) empty body sourcepublic void recomputeViewAttributes(View child) empty body sourcepublic void clearChildFocus(View child) empty body sourcepublic boolean getChildVisibleRect(View child, Rect r, android.graphics.Point offset) sourcepublic View focusSearch(View focused, int direction) sourcepublic void bringChildToFront(View child) empty body sourcepublic void focusableViewAvailable(View v) empty body sourcepublic boolean showContextMenuForChild(View originalView) sourcepublic boolean showContextMenuForChild(View originalView, float x, float y) sourcepublic ActionMode startActionModeForChild(View originalView, ActionMode.Callback callback) sourcepublic ActionMode startActionModeForChild(View originalView, ActionMode.Callback callback, int type) sourcepublic void childDrawableStateChanged(View child) empty body sourcepublic void requestDisallowInterceptTouchEvent(boolean disallowIntercept) empty body sourcepublic boolean requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) sourcepublic boolean requestSendAccessibilityEvent(View child, android.view.accessibility.AccessibilityEvent event) sourcepublic void childHasTransientStateChanged(View child, boolean hasTransientState) empty body sourcepublic void notifySubtreeAccessibilityStateChanged(View child, View source, int changeType) empty body sourcepublic boolean canResolveLayoutDirection() sourcePage 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.