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