public class TextToolPanel extends AbstractToolPanel 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,
AbstractTool 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, detach, init, isAttached, refreshprotected int getLayoutResource()
getLayoutResource in class AbstractToolPanelprotected void onAttached(android.content.Context context,
android.view.View panelView,
AbstractTool tool)
AbstractToolPanelonAttached in class AbstractToolPanelcontext - 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(android.view.View panelView,
boolean revertChanges)
AbstractToolPanelonBeforeDetach in class AbstractToolPanelprotected void onDetached()
AbstractToolPanelonDetached in class AbstractToolPanelpublic void onTextChanged(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