public class StickerToolPanel extends AbstractToolPanel<StickerEditorTool> implements DataSourceListAdapter.OnItemClickListener<StickerListConfigInterface>, DataSourceArrayList.Callback
AbstractToolPanel.ToolView
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
StickerToolPanel() |
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() |
void |
listInvalid(java.util.List data) |
void |
listItemAdded(java.util.List data,
int index) |
void |
listItemChanged(java.util.List data,
int index) |
void |
listItemRemoved(java.util.List data,
int index) |
void |
listItemsAdded(java.util.List data,
int from,
int to) |
void |
listItemsRemoved(java.util.List data,
int from,
int to) |
protected void |
onAttached(android.content.Context context,
android.view.View panelView,
StickerEditorTool tool)
Called on attached the View.
|
protected void |
onDetached()
Called after View would detached.
|
void |
onItemClick(StickerListConfigInterface 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<StickerEditorTool>
@NonNull protected android.animation.Animator createShowAnimator(@NonNull android.view.View panelView)
createShowAnimator
in class AbstractToolPanel<StickerEditorTool>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<StickerEditorTool>
public void listInvalid(java.util.List data)
listInvalid
in interface DataSourceArrayList.Callback
public void listItemAdded(java.util.List data, int index)
listItemAdded
in interface DataSourceArrayList.Callback
public void listItemChanged(java.util.List data, int index)
listItemChanged
in interface DataSourceArrayList.Callback
public void listItemRemoved(java.util.List data, int index)
listItemRemoved
in interface DataSourceArrayList.Callback
public void listItemsAdded(java.util.List data, int from, int to)
listItemsAdded
in interface DataSourceArrayList.Callback
public void listItemsRemoved(java.util.List data, int from, int to)
listItemsRemoved
in interface DataSourceArrayList.Callback
protected void onAttached(android.content.Context context, @NonNull android.view.View panelView, StickerEditorTool tool)
AbstractToolPanel
onAttached
in class AbstractToolPanel<StickerEditorTool>
context
- the view contextpanelView
- the tool paneltool
- the toolprotected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel<StickerEditorTool>
public void onItemClick(@NonNull StickerListConfigInterface entity)
onItemClick
in interface DataSourceListAdapter.OnItemClickListener<StickerListConfigInterface>