public static interface KeyboardUtil.OnKeyboardShowingListener
KeyboardUtil.attach(Activity, IPanelHeightTarget, OnKeyboardShowingListener),
KeyboardStatusListener#calculateKeyboardShowing(int)| Modifier and Type | Method and Description |
|---|---|
void |
onKeyboardShowing(boolean isShowing)
Keyboard showing state callback method.
|
void onKeyboardShowing(boolean isShowing)
This method is invoked in ViewTreeObserver.OnGlobalLayoutListener#onGlobalLayout() which is one of the
ViewTree lifecycle callback methods. So deprecating those time-consuming operation(I/O, complex calculation,
alloc objects, etc.) here from blocking main ui thread is recommended.
isShowing - Indicate whether keyboard is showing or not.