public class HostRenderUnit extends RenderUnit<HostView> implements ContentAllocator<HostView>
RenderUnit.Binder<MODEL,CONTENT>, RenderUnit.DelegateBinder<MODEL,CONTENT>, RenderUnit.RenderType
Modifier and Type | Field and Description |
---|---|
static RenderUnit.Binder<HostRenderUnit,HostView> |
sBackgroundBindFunction |
static RenderUnit.Binder<HostRenderUnit,HostView> |
sForegroundBindFunction |
static RenderUnit.Binder<HostRenderUnit,HostView> |
sLayerTypeBindFunction |
static RenderUnit.Binder<HostRenderUnit,HostView> |
sTouchHandlersBindFunction |
DEFAULT_MAX_PREALLOCATION
Constructor and Description |
---|
HostRenderUnit(long id) |
Modifier and Type | Method and Description |
---|---|
HostView |
createContent(Context context)
Allocates the mountable content (View or Drawable).
|
Drawable |
getBackground() |
int |
getClickable() |
ContentAllocator<HostView> |
getContentAllocator() |
Drawable |
getForeground() |
long |
getId() |
int |
getLayerType() |
OnClickListener |
getOnClickListener() |
OnFocusChangeListener |
getOnFocusChangeListener() |
InterceptTouchHandler |
getOnInterceptTouchEvent() |
OnLongClickListener |
getOnLongClickListener() |
OnTouchListener |
getOnTouchListener() |
boolean |
isEnabled() |
boolean |
isFocusable() |
boolean |
isFocusableInTouchMode() |
void |
setBackground(Drawable background) |
void |
setClickable(boolean clickable) |
void |
setClickListener(OnClickListener clickListener) |
void |
setEnabled(boolean enabled) |
void |
setFocusable(boolean focusable) |
void |
setFocusableInTouchMode(boolean focusableInTouchMode) |
void |
setForeground(Drawable foreground) |
void |
setInterceptTouchHandler(InterceptTouchHandler interceptTouchHandler) |
void |
setLayerType(int layerType) |
void |
setLongClickListener(OnLongClickListener longClickListener) |
void |
setOnFocusChangeListener(OnFocusChangeListener onFocusChangeListener) |
void |
setOnTouchListener(OnTouchListener onTouchListener) |
addAttachBinder, addAttachBinders, addMountBinder, addMountBinders, attachBinders, detachBinders, doesMountRenderTreeHosts, getAttachBinders, getAttachBinderTypeToDelegateMap, getDescription, getMountBinders, getMountBinderTypeToDelegateMap, getRenderContentType, getRenderType, mountBinders, onEndUpdateRenderUnit, onStartUpdateRenderUnit, unmountBinders
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canPreallocate, createPoolableContent, createRecyclingPool, getPoolableContentType, isRecyclingDisabled, onCreateMountContentPool, poolSize
public static RenderUnit.Binder<HostRenderUnit,HostView> sBackgroundBindFunction
public static RenderUnit.Binder<HostRenderUnit,HostView> sForegroundBindFunction
public static RenderUnit.Binder<HostRenderUnit,HostView> sLayerTypeBindFunction
public static RenderUnit.Binder<HostRenderUnit,HostView> sTouchHandlersBindFunction
public HostView createContent(Context context)
ContentAllocator
createContent
in interface ContentAllocator<HostView>
public ContentAllocator<HostView> getContentAllocator()
getContentAllocator
in class RenderUnit<HostView>
public long getId()
getId
in class RenderUnit<HostView>
public Drawable getBackground()
public Drawable getForeground()
public int getLayerType()
public int getClickable()
public boolean isEnabled()
public OnTouchListener getOnTouchListener()
public OnClickListener getOnClickListener()
public OnLongClickListener getOnLongClickListener()
public InterceptTouchHandler getOnInterceptTouchEvent()
public OnFocusChangeListener getOnFocusChangeListener()
public boolean isFocusable()
public boolean isFocusableInTouchMode()
public void setBackground(Drawable background)
public void setForeground(Drawable foreground)
public void setLayerType(int layerType)
public void setClickable(boolean clickable)
public void setEnabled(boolean enabled)
public void setFocusable(boolean focusable)
public void setFocusableInTouchMode(boolean focusableInTouchMode)
public void setOnFocusChangeListener(OnFocusChangeListener onFocusChangeListener)
public void setInterceptTouchHandler(InterceptTouchHandler interceptTouchHandler)
public void setLongClickListener(OnLongClickListener longClickListener)
public void setClickListener(OnClickListener clickListener)
public void setOnTouchListener(OnTouchListener onTouchListener)