Blankj / Blankj/AndroidUtilCode

软键盘收起后又弹出了

Aperta
#1,764 2 commenti 0 reazioni 1 assegnatario Rivendicata da @Blankj Vedi su GitHub
bug
Lingua principale
Java
Stelle
33.6k
Fork
10.6k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

在业务中使用 showSoftInput(@NonNull final View view),切换键盘代码
```
if (!isShowEmojiPanel) {
KeyboardUtils.hideSoftInput(etMsgSend)
showEmojiFragment()
} else {
KeyboardUtils.showSoftInput(etMsgSend)
hideEmojiFragment()
}
isShowEmojiPanel = !isShowEmojiPanel
```
有一条路径必现软键盘收起后又弹出,查找是 imm.toggleSoftInput 导致,删除 imm.toggleSoftInput 这个代码后没问题了

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.