public class TextToolPanel extends AbstractToolPanel implements android.view.ViewTreeObserver.OnGlobalLayoutListener, android.widget.TextView.OnEditorActionListener
AbstractToolPanel.ToolView
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TOOL_ID |
ANIMATION_DURATION, historySettings, parentView, toolHistoryLevel, toolView, uiDensity
Constructor and Description |
---|
TextToolPanel(StateHandler stateHandler) |
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 java.lang.Class<? extends Settings>[] |
getHistorySettings() |
protected int |
getLayoutResource() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView)
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) |
void |
switchKeyboardVisibility(boolean enable) |
attach, callAttached, detach, equals, feature, getConfig, getHistoryLevel, getHistoryState, getPanelView, getStateHandler, hashCode, isAcceptable, isAttached, isCancelable, isInited, isReady, onDetach, redoLocalState, refresh, revertChanges, revertToInitialState, saveEndState, saveInitialState, saveLocalState, setupHistory, toString, undoLocalState, updateStageOverlapping
public static final java.lang.String TOOL_ID
public TextToolPanel(@NonNull StateHandler stateHandler)
@Nullable protected java.lang.Class<? extends Settings>[] getHistorySettings()
getHistorySettings
in class AbstractToolPanel
protected int getLayoutResource()
getLayoutResource
in class AbstractToolPanel
protected void onAttached(android.content.Context context, @NonNull android.view.View panelView)
AbstractToolPanel
onAttached
in class AbstractToolPanel
context
- the view contextpanelView
- this tool panel view@NonNull protected android.animation.Animator createShowAnimator(@NonNull android.view.View panelView)
createShowAnimator
in class AbstractToolPanel
@NonNull protected android.animation.Animator createExitAnimator(@NonNull android.view.View panelView)
createExitAnimator
in class AbstractToolPanel
public void checkKeyboardHeight(boolean check)
public void switchKeyboardVisibility(boolean enable)
public void onGlobalLayout()
onGlobalLayout
in interface android.view.ViewTreeObserver.OnGlobalLayoutListener
protected int onBeforeDetach(@NonNull android.view.View panelView, boolean revertChanges)
AbstractToolPanel
onBeforeDetach
in class AbstractToolPanel
protected void onDetached()
AbstractToolPanel
onDetached
in class AbstractToolPanel
public void onTextChanged(@NonNull java.lang.String text)
public boolean onEditorAction(android.widget.TextView v, int actionId, android.view.KeyEvent event)
onEditorAction
in interface android.widget.TextView.OnEditorActionListener