Somebody ask me, why there are no layout jumping in wechat when switching between the panel and the keyboard?
It’s very simple.
Just 2 cases under 2 rules.
- Definition android:windowSoftInputMode as adjustSize for Activity in AndroidManifest xml.
- Already calculated keybord height.
To ensure that gone(or providing zero height) panel during keyboard squeeze layout trigger layout real remeasuring smaller height and redrawing.
To ensure that switching panel to display(visible&valid height) from hidden(gone|no height) state is in the keybord hiding trigger layout real remeasuring more high and redrawing period.
- No trigger layout remeasure & redraw by panel.
- Readjusting panel height during keybord trigger layout remeasuring new height.
any suggestions and questions, welcome to follow post comment.