What does KeyboardView.closing() do?
Does anybody know what KeyboardView开发者_运维知识库.closing() does? It is undocumented, or rather it's description in the documentation is blank (like sooooo many other methods).
Thanks in advance, Barry
I believe this is what it looks like internally (source):
public void closing() {
if (mPreviewPopup.isShowing()) {
mPreviewPopup.dismiss();
}
removeMessages();
dismissPopupKeyboard();
mBuffer = null;
mCanvas = null;
mMiniKeyboardCache.clear();
}
By the look of it, it does what you might expect. It clears the keyboard cache, the bitmap image used in the rendering of the keyboard and dismisses the virtual keyboard if it's showing.
精彩评论