public class KPSwitchPanelLayoutHandler extends Object implements IPanelConflictLayout
visibility equal View.VISIBLE
then must by Keyboard->Panel, then show the panel after the keyboard is real gone, and will be
show by IPanelConflictLayout.handleShow().
Easy and Safe way: KPSwitchConflictUtil.showPanel(View).
Panel->Keyboard: do not need to invoke View.setVisibility(int) to let the panel gone,
just show keyboard, the panel will be gone automatically when keyboard is real visible, and will
be hide by handleHide() -> processOnMeasure(int, int).
Easy and safe way: KPSwitchConflictUtil.showKeyboard(View, View).| Constructor and Description |
|---|
KPSwitchPanelLayoutHandler(View panelLayout) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
filterSetVisibility(int visibility)
Filter the
View.setVisibility(int) for handling Keyboard->Panel. |
void |
handleHide()
Panel->Keyboard
|
void |
handleShow()
Keyboard->Panel
|
boolean |
isKeyboardShowing() |
boolean |
isVisible() |
int[] |
processOnMeasure(int widthMeasureSpec,
int heightMeasureSpec)
Handle Panel -> Keyboard.
|
void |
setIsKeyboardShowing(boolean isKeyboardShowing) |
public KPSwitchPanelLayoutHandler(View panelLayout)
public boolean filterSetVisibility(int visibility)
View.setVisibility(int) for handling Keyboard->Panel.visibility - View.setVisibility(int)public int[] processOnMeasure(int widthMeasureSpec,
int heightMeasureSpec)
View.onMeasure(int, int) for handling the case of Panel->Keyboard.handleHide()public void setIsKeyboardShowing(boolean isKeyboardShowing)
public boolean isKeyboardShowing()
isKeyboardShowing in interface IPanelConflictLayoutpublic boolean isVisible()
isVisible in interface IPanelConflictLayoutpublic void handleShow()
IPanelConflictLayouthandleShow in interface IPanelConflictLayoutKPSwitchConflictUtil.showPanel(View)public void handleHide()
IPanelConflictLayouthandleHide in interface IPanelConflictLayoutprocessOnMeasure(int, int)