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 android.animation.Animator |
createExitAnimator(android.view.View panelView) |
protected android.animation.Animator |
createShowAnimator(android.view.View panelView) |
protected int |
getLayoutResource() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView,
AbstractColorEditorTool<?> tool)
Called on attached 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, updateStageOverlapping
@NonNull protected android.animation.Animator createExitAnimator(@NonNull android.view.View panelView)
createExitAnimator
in class AbstractToolPanel<AbstractColorEditorTool<?>>
@NonNull protected android.animation.Animator createShowAnimator(@NonNull android.view.View panelView)
createShowAnimator
in class AbstractToolPanel<AbstractColorEditorTool<?>>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<AbstractColorEditorTool<?>>
protected void onAttached(android.content.Context context, @NonNull android.view.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>