Jacksgong / JKeyboardPanelSwitch

For resolve the layout conflict when keybord & panel are switching (Android键盘面板冲突 布局闪动处理方案)
Apache License 2.0
4.18k stars 684 forks source link

navigationBar的隐藏和显示,会使该库的逻辑错误。 #34

Closed feaoes closed 8 years ago

feaoes commented 8 years ago

华为手机下面的NavigationBar隐藏和显示,也通知OnGlobalLayout方法,你的逻辑误认为是键盘弹出导致的。

other issues: 如果使用Fragment的话,那么通过查找系统根节点进行监听 final ViewGroup contentView = (ViewGroup) activity.findViewById(android.R.id.content); contentView.getViewTreeObserver(). addOnGlobalLayoutListener( new KeyboardStatusListener(isFullScreen, isTranslucentStatus, isFitSystemWindows, contentView, target, listener)); 当重复进入聊天Fragment的时候,会对聊天界面中的输入框进行多次注册,导致了重复的逻辑。

Jacksgong commented 8 years ago

该问题已经在这个PR中修复: https://github.com/Jacksgong/JKeyboardPanelSwitch/pull/33

等待sollian完善以后合入后会发布新的版本修复。

Jacksgong commented 8 years ago

Fixed since v1.5.0.