public class RenderTreeHostView extends HostView implements RenderTreeHost
Constructor and Description |
---|
RenderTreeHostView(Context context) |
RenderTreeHostView(Context context,
AttributeSet attrs) |
Modifier and Type | Method and Description |
---|---|
void |
notifyVisibleBoundsChanged()
Notifies the host the its visible bounds may have potentially changed.
|
void |
offsetLeftAndRight(int offset) |
void |
offsetTopAndBottom(int offset) |
void |
onAttachedToWindow() |
void |
onDetachedFromWindow() |
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
void |
setRenderTree(RenderTree tree)
Sets render tree and requests layout
|
void |
setTranslationX(float translationX) |
void |
setTranslationY(float translationY) |
dispatchDraw, draw, drawableStateChanged, getChildDrawingOrder, getDescriptionOfMountedItems, getMountItemAt, getMountItemCount, getTag, getTag, jumpDrawablesToCurrentState, mount, moveItem, onInterceptTouchEvent, onLayout, onSizeChanged, onTouchEvent, requestLayout, safelyUnmountAll, setForegroundCompat, setInLayout, setInterceptTouchEventHandler, setViewTag, setViewTags, setVisibility, shouldDelayChildPressedState, shouldRequestLayout, unmount, unmount, unsetInLayout, verifyDrawable
getClipChildren, setClipChildren
public RenderTreeHostView(Context context)
public RenderTreeHostView(Context context, AttributeSet attrs)
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
public void setRenderTree(RenderTree tree)
setRenderTree
in interface RenderTreeHost
tree
- if null, it unmounts all itemspublic void onDetachedFromWindow()
public void onAttachedToWindow()
public void notifyVisibleBoundsChanged()
RenderCoreExtensionHost
notifyVisibleBoundsChanged
in interface RenderCoreExtensionHost
public void offsetTopAndBottom(int offset)
public void offsetLeftAndRight(int offset)
public void setTranslationX(float translationX)
public void setTranslationY(float translationY)