public class TextToolPanel extends AbstractToolPanel<TextEditorTool>
AbstractToolPanel.ToolView
ANIMATION_DURATION, parentView, toolView, uiDensity
Constructor and Description |
---|
TextToolPanel() |
Modifier and Type | Method and Description |
---|---|
void |
checkKeyboardHeight(boolean check) |
protected Animator |
createExitAnimator(View panelView) |
protected Animator |
createShowAnimator(View panelView) |
protected int |
getLayoutResource() |
protected void |
onAttached(Context context,
View panelView,
TextEditorTool tool)
Called on atteched the View.
|
protected int |
onBeforeDetach(View panelView,
boolean revertChanges)
Called before the View will detached.
|
protected void |
onDetached()
Called after View would detached.
|
boolean |
onEditorAction(TextView v,
int actionId,
KeyEvent event) |
void |
onGlobalLayout() |
void |
onTextChanged(java.lang.String text,
Paint.Align align) |
void |
switchKeyboardVisibility(boolean enable) |
attach, callAttached, detach, init, isAttached, isInited, refresh, updateStageOverlapping
public void checkKeyboardHeight(boolean check)
@NonNull protected Animator createExitAnimator(@NonNull View panelView)
createExitAnimator
in class AbstractToolPanel<TextEditorTool>
@NonNull protected Animator createShowAnimator(@NonNull View panelView)
createShowAnimator
in class AbstractToolPanel<TextEditorTool>
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel<TextEditorTool>
protected void onAttached(Context context, @NonNull View panelView, TextEditorTool tool)
AbstractToolPanel
onAttached
in class AbstractToolPanel<TextEditorTool>
context
- the view contextpanelView
- the tool paneltool
- the toolprotected int onBeforeDetach(@NonNull View panelView, boolean revertChanges)
AbstractToolPanel
onBeforeDetach
in class AbstractToolPanel<TextEditorTool>
protected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel<TextEditorTool>
public boolean onEditorAction(TextView v, int actionId, KeyEvent event)
public void onGlobalLayout()
public void onTextChanged(@NonNull java.lang.String text, Paint.Align align)
public void switchKeyboardVisibility(boolean enable)