public class TextToolPanel extends AbstractToolPanel<TextEditorTool> implements android.view.ViewTreeObserver.OnGlobalLayoutListener, android.widget.TextView.OnEditorActionListener
AbstractToolPanel.ToolViewANIMATION_DURATION, parentView, toolView| Constructor and Description |
|---|
TextToolPanel() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkKeyboardHeight(boolean check) |
protected int |
getLayoutResource() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView,
TextEditorTool tool)
Called on atteched 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, refreshprotected int getLayoutResource()
getLayoutResource in class AbstractToolPanel<TextEditorTool>protected void onAttached(android.content.Context context,
@NonNull
android.view.View panelView,
TextEditorTool tool)
AbstractToolPanelonAttached in class AbstractToolPanel<TextEditorTool>context - the view contextpanelView - the tool paneltool - the toolpublic void checkKeyboardHeight(boolean check)
public void switchKeyboardVisibility(boolean enable)
public void onGlobalLayout()
onGlobalLayout in interface android.view.ViewTreeObserver.OnGlobalLayoutListenerprotected int onBeforeDetach(@NonNull
android.view.View panelView,
boolean revertChanges)
AbstractToolPanelonBeforeDetach in class AbstractToolPanel<TextEditorTool>protected void onDetached()
AbstractToolPanelonDetached in class AbstractToolPanel<TextEditorTool>public void onTextChanged(@NonNull
java.lang.String text,
android.graphics.Paint.Align align)
public boolean onEditorAction(android.widget.TextView v,
int actionId,
android.view.KeyEvent event)
onEditorAction in interface android.widget.TextView.OnEditorActionListener