public class ToolPanel extends AbstractToolPanel<EditorToolMenu> implements DataSourceListAdapter.OnItemClickListener<ToolConfigInterface>
AbstractToolPanel.ToolView
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
ToolPanel() |
Modifier and Type | Method and Description |
---|---|
protected Animator |
createExitAnimator(View panelView) |
protected Animator |
createShowAnimator(View panelView) |
protected int |
getLayoutResource() |
protected void |
onAttached(Context context,
View panelView,
EditorToolMenu tool)
Called on atteched the View.
|
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(ToolConfigInterface entity) |
attach, callAttached, detach, init, isAttached, isInited, onBeforeDetach, refresh, updateStageOverlapping
@NonNull protected Animator createExitAnimator(@NonNull View panelView)
createExitAnimator
in class AbstractToolPanel<EditorToolMenu>
@NonNull protected Animator createShowAnimator(@NonNull View panelView)
createShowAnimator
in class AbstractToolPanel<EditorToolMenu>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<EditorToolMenu>
protected void onAttached(Context context, @NonNull View panelView, EditorToolMenu tool)
AbstractToolPanel
onAttached
in class AbstractToolPanel<EditorToolMenu>
context
- the view contextpanelView
- the tool paneltool
- the toolprotected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel<EditorToolMenu>
public void onItemClick(@Nullable ToolConfigInterface entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<ToolConfigInterface>