public class ColorOptionToolPanel extends AbstractToolPanel<AbstractColorEditorTool<?>> implements DataSourceListAdapter.OnItemClickListener<ColorConfigInterface>, ColorPickerView.OnColorChanged
AbstractToolPanel.ToolView
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
ColorOptionToolPanel() |
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,
AbstractColorEditorTool<?> tool)
Called on atteched the View.
|
void |
onColorPickerSelection(int color) |
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(ColorConfigInterface entity) |
attach, callAttached, detach, init, isAttached, isInited, onBeforeDetach, refresh
@NonNull protected Animator createExitAnimator(@NonNull View panelView)
createExitAnimator
in class AbstractToolPanel<AbstractColorEditorTool<?>>
@NonNull protected Animator createShowAnimator(@NonNull View panelView)
createShowAnimator
in class AbstractToolPanel<AbstractColorEditorTool<?>>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<AbstractColorEditorTool<?>>
protected void onAttached(Context context, @NonNull View panelView, AbstractColorEditorTool<?> tool)
AbstractToolPanel
onAttached
in class AbstractToolPanel<AbstractColorEditorTool<?>>
context
- the view contextpanelView
- the tool paneltool
- the toolpublic void onColorPickerSelection(int color)
onColorPickerSelection
in interface ColorPickerView.OnColorChanged
protected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel<AbstractColorEditorTool<?>>
public void onItemClick(@NonNull ColorConfigInterface entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<ColorConfigInterface>