public class StickerOptionToolPanel extends AbstractToolPanel<StickerOptionsEditorTool> implements DataSourceListAdapter.OnItemClickListener<StickerOptionToolPanel.StickerOption>, AbstractColorEditorTool.OnColorSelected<StickerEditorTool.COLOR_TYPE>
Modifier and Type | Class and Description |
---|---|
protected static class |
StickerOptionToolPanel.StickerColorOption |
protected static class |
StickerOptionToolPanel.StickerOption |
protected static class |
StickerOptionToolPanel.StickerQuickOption |
AbstractToolPanel.ToolView
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
StickerOptionToolPanel() |
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,
StickerOptionsEditorTool tool)
Called on atteched the View.
|
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(StickerOptionToolPanel.StickerOption entity) |
void |
refresh() |
void |
setColor(int color,
StickerEditorTool.COLOR_TYPE type) |
attach, callAttached, detach, init, isAttached, isInited, onBeforeDetach
@NonNull protected Animator createExitAnimator(@NonNull View panelView)
createExitAnimator
in class AbstractToolPanel<StickerOptionsEditorTool>
@NonNull protected Animator createShowAnimator(@NonNull View panelView)
createShowAnimator
in class AbstractToolPanel<StickerOptionsEditorTool>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<StickerOptionsEditorTool>
protected void onAttached(Context context, @NonNull View panelView, StickerOptionsEditorTool tool)
AbstractToolPanel
onAttached
in class AbstractToolPanel<StickerOptionsEditorTool>
context
- the view contextpanelView
- the tool paneltool
- the toolprotected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel<StickerOptionsEditorTool>
public void onItemClick(@NonNull StickerOptionToolPanel.StickerOption entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<StickerOptionToolPanel.StickerOption>
public void refresh()
refresh
in class AbstractToolPanel<StickerOptionsEditorTool>
public void setColor(int color, StickerEditorTool.COLOR_TYPE type)
setColor
in interface AbstractColorEditorTool.OnColorSelected<StickerEditorTool.COLOR_TYPE>