Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在 popupWindow 下 出现 键盘高度 不对的情况 #158

Open
smileToWxm opened this issue Nov 7, 2021 · 0 comments
Open

在 popupWindow 下 出现 键盘高度 不对的情况 #158

smileToWxm opened this issue Nov 7, 2021 · 0 comments

Comments

@smileToWxm
Copy link

操作如下
打开 popupWindow 点击输入框 弹出输入法, 切换 PanelView ,点击返回键(自动隐藏PanelView),此时在 点击 输入框 就会出现该问题。
有个 有意思的现象,如果 PanelView 里面 的 recyclerview 显示的话,则不会出现该问题,如果被隐藏了 就会出现该问题
日志如下,

2021-11-07 18:14:17.803 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getCompatPanelHeight :765
2021-11-07 18:14:17.823 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onGlobalLayout => 界面每一次变化的信息回调
windowSoftInputMode = 19
currentPanelSwitchLayoutVisible = true
screenHeight = 2340
contentHeight = 2120
isFullScreen = false
isNavigationBarShown = true
deviceStatusBarH = 90
deviceNavigationBarH = 136
systemInset = left(90) top(0) right(0) bottom(130)
inset = left(0) top(90) right(0) bottom(130)
currentSystemInfo = statusBarH : 90, navigationBarH : 136 全面屏手势虚拟栏H : 0
currentSystemH = 226
minLimitCloseKeyboardH = 136
minLimitOpenKeyboardH = 300
lastKeyboardH = 0
currentKeyboardInfo = keyboardH : -6, realKeyboardH : -6, isShown : false
2021-11-07 18:14:17.840 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getCompatPanelHeight :765
2021-11-07 18:14:17.840 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getContentContainerTop :0
2021-11-07 18:14:17.841 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => 界面每一次 layout 的信息回调
layoutInfo = onLayout(changed : true , l : 0 , t : 0 , r : 1080 , b : 2210)
currentPanelState = 收起所有输入源
isPad = false
isFullScreen = false
isPortrait = true
isNavigationShown = true
screenH (static,include SystemUI) = 2340
screenH (static,exclude SystemUI) = 2120
screenH (dynamic,exclude SystemUI) = 2120
localLocation[y] = 0
toolbarH = 0
StatusBarH = 90
NavigationBarH = 136
layout Location = (0,0)
paddingTop = 0
keyboardH = 765
ContentContainerTop = 0
ContentContainerH = 2204
PanelContainerTop = 2204
PanelContainerH = 765
changeBounds = true
reverseResetState = false
contentContainer Layout = (0,0,1080,2204)
panelContainer Layout = (0,2204,1080,2969)
2021-11-07 18:14:17.841 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getCompatPanelHeight :765
2021-11-07 18:14:17.841 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getContentContainerTop :0
2021-11-07 18:14:17.841 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => 界面每一次 layout 的信息回调
layoutInfo = onLayout(changed : false , l : 0 , t : 0 , r : 1080 , b : 2210)
currentPanelState = 收起所有输入源
isPad = false
isFullScreen = false
isPortrait = true
isNavigationShown = true
screenH (static,include SystemUI) = 2340
screenH (static,exclude SystemUI) = 2120
screenH (dynamic,exclude SystemUI) = 2120
localLocation[y] = 0
toolbarH = 0
StatusBarH = 90
NavigationBarH = 136
layout Location = (0,0)
paddingTop = 0
keyboardH = 765
ContentContainerTop = 0
ContentContainerH = 2204
PanelContainerTop = 2204
PanelContainerH = 765
changeBounds = false
contentContainer Layout = (0,0,1080,2204)
panelContainer Layout = (0,2204,1080,2969)
2021-11-07 18:14:17.910 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getCompatPanelHeight :765
2021-11-07 18:14:17.910 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#checkoutPanel => checkout success ! lastPanel's id : -1 , panel's id :2131362382
2021-11-07 18:14:17.929 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getCompatPanelHeight :765
2021-11-07 18:14:17.929 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getContentContainerTop :-765
2021-11-07 18:14:17.937 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => 界面每一次 layout 的信息回调
layoutInfo = onLayout(changed : false , l : 0 , t : 0 , r : 1080 , b : 2210)
currentPanelState = 显示面板输入
isPad = false
isFullScreen = false
isPortrait = true
isNavigationShown = true
screenH (static,include SystemUI) = 2340
screenH (static,exclude SystemUI) = 2120
screenH (dynamic,exclude SystemUI) = 2120
localLocation[y] = 0
toolbarH = 0
StatusBarH = 90
NavigationBarH = 136
layout Location = (0,0)
paddingTop = 0
keyboardH = 765
ContentContainerTop = -765
ContentContainerH = 2204
PanelContainerTop = 1439
PanelContainerH = 765
changeBounds = true
reverseResetState = true
contentContainer Layout = (0,-765,1080,1439)
panelContainer Layout = (0,1439,1080,2204)
2021-11-07 18:14:18.043 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#checkoutPanel => checkout success ! lastPanel's id : 2131362382 , panel's id :0
2021-11-07 18:14:18.096 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onGlobalLayout => try to set KeyBoardHeight : 765,isShow true
2021-11-07 18:14:18.096 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onGlobalLayout => 界面每一次变化的信息回调
windowSoftInputMode = 19
currentPanelSwitchLayoutVisible = true
screenHeight = 2340
contentHeight = 1349
isFullScreen = false
isNavigationBarShown = true
deviceStatusBarH = 90
deviceNavigationBarH = 136
systemInset = left(90) top(0) right(0) bottom(901)
inset = left(0) top(90) right(0) bottom(130)
currentSystemInfo = statusBarH : 90, navigationBarH : 136 全面屏手势虚拟栏H : 0
currentSystemH = 226
minLimitCloseKeyboardH = 136
minLimitOpenKeyboardH = 300
lastKeyboardH = -6
currentKeyboardInfo = keyboardH : 765, realKeyboardH : 765, isShown : false
2021-11-07 18:14:18.134 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getCompatPanelHeight :765
2021-11-07 18:14:18.134 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getContentContainerTop :-765
2021-11-07 18:14:18.185 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => 界面每一次 layout 的信息回调
layoutInfo = onLayout(changed : false , l : 0 , t : 0 , r : 1080 , b : 2210)
currentPanelState = 显示键盘输入
isPad = false
isFullScreen = false
isPortrait = true
isNavigationShown = true
screenH (static,include SystemUI) = 2340
screenH (static,exclude SystemUI) = 2120
screenH (dynamic,exclude SystemUI) = 1349
localLocation[y] = 0
toolbarH = 0
StatusBarH = 90
NavigationBarH = 136
layout Location = (0,0)
paddingTop = 0
keyboardH = 765
ContentContainerTop = -765
ContentContainerH = 2204
PanelContainerTop = 1439
PanelContainerH = 765
changeBounds = false
contentContainer Layout = (0,-765,1080,1439)
panelContainer Layout = (0,1439,1080,2204)
2021-11-07 18:14:19.559 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getCompatPanelHeight by default panel :1037
2021-11-07 18:14:19.561 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#checkoutPanel => checkout success ! lastPanel's id : 0 , panel's id :2131363899
2021-11-07 18:14:19.577 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getCompatPanelHeight by default panel :1037
2021-11-07 18:14:19.577 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getContentContainerTop :-1037
2021-11-07 18:14:19.578 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => 界面每一次 layout 的信息回调
layoutInfo = onLayout(changed : false , l : 0 , t : 0 , r : 1080 , b : 2210)
currentPanelState = 显示面板输入
isPad = false
isFullScreen = false
isPortrait = true
isNavigationShown = true
screenH (static,include SystemUI) = 2340
screenH (static,exclude SystemUI) = 2120
screenH (dynamic,exclude SystemUI) = 1349
localLocation[y] = 0
toolbarH = 0
StatusBarH = 90
NavigationBarH = 136
layout Location = (0,0)
paddingTop = 0
keyboardH = 765
ContentContainerTop = -1037
ContentContainerH = 2204
PanelContainerTop = 1167
PanelContainerH = 1037
changeBounds = false
contentContainer Layout = (0,-1037,1080,1167)
panelContainer Layout = (0,1167,1080,2204)
2021-11-07 18:14:19.595 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onGlobalLayout => 界面每一次变化的信息回调
windowSoftInputMode = 19
currentPanelSwitchLayoutVisible = true
screenHeight = 2340
contentHeight = 2120
isFullScreen = false
isNavigationBarShown = true
deviceStatusBarH = 90
deviceNavigationBarH = 136
systemInset = left(90) top(0) right(0) bottom(130)
inset = left(0) top(90) right(0) bottom(130)
currentSystemInfo = statusBarH : 90, navigationBarH : 136 全面屏手势虚拟栏H : 0
currentSystemH = 226
minLimitCloseKeyboardH = 136
minLimitOpenKeyboardH = 300
lastKeyboardH = 765
currentKeyboardInfo = keyboardH : -6, realKeyboardH : -6, isShown : true
2021-11-07 18:14:19.785 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getCompatPanelHeight by default panel :1037
2021-11-07 18:14:19.785 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getContentContainerTop :-1037
2021-11-07 18:14:19.786 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => 界面每一次 layout 的信息回调
layoutInfo = onLayout(changed : false , l : 0 , t : 0 , r : 1080 , b : 2210)
currentPanelState = 显示面板输入
isPad = false
isFullScreen = false
isPortrait = true
isNavigationShown = true
screenH (static,include SystemUI) = 2340
screenH (static,exclude SystemUI) = 2120
screenH (dynamic,exclude SystemUI) = 2120
localLocation[y] = 0
toolbarH = 0
StatusBarH = 90
NavigationBarH = 136
layout Location = (0,0)
paddingTop = 0
keyboardH = 765
ContentContainerTop = -1037
ContentContainerH = 2204
PanelContainerTop = 1167
PanelContainerH = 1037
changeBounds = false
contentContainer Layout = (0,-1037,1080,1167)
panelContainer Layout = (0,1167,1080,2204)
2021-11-07 18:14:20.998 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#checkoutPanel => checkout success ! lastPanel's id : 2131363899 , panel's id :-1
2021-11-07 18:14:21.009 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getCompatPanelHeight :765
2021-11-07 18:14:21.009 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getContentContainerTop :0
2021-11-07 18:14:21.010 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => 界面每一次 layout 的信息回调
layoutInfo = onLayout(changed : false , l : 0 , t : 0 , r : 1080 , b : 2210)
currentPanelState = 收起所有输入源
isPad = false
isFullScreen = false
isPortrait = true
isNavigationShown = true
screenH (static,include SystemUI) = 2340
screenH (static,exclude SystemUI) = 2120
screenH (dynamic,exclude SystemUI) = 2120
localLocation[y] = 0
toolbarH = 0
StatusBarH = 90
NavigationBarH = 136
layout Location = (0,0)
paddingTop = 0
keyboardH = 765
ContentContainerTop = 0
ContentContainerH = 2204
PanelContainerTop = 2204
PanelContainerH = 765
changeBounds = true
reverseResetState = true
contentContainer Layout = (0,0,1080,2204)
panelContainer Layout = (0,2204,1080,2969)
2021-11-07 18:14:22.097 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#checkoutPanel => checkout success ! lastPanel's id : -1 , panel's id :0
2021-11-07 18:14:22.102 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getCompatPanelHeight :765
2021-11-07 18:14:22.102 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getContentContainerTop :-765
2021-11-07 18:14:22.103 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => 界面每一次 layout 的信息回调
layoutInfo = onLayout(changed : false , l : 0 , t : 0 , r : 1080 , b : 2210)
currentPanelState = 显示键盘输入
isPad = false
isFullScreen = false
isPortrait = true
isNavigationShown = true
screenH (static,include SystemUI) = 2340
screenH (static,exclude SystemUI) = 2120
screenH (dynamic,exclude SystemUI) = 2120
localLocation[y] = 0
toolbarH = 0
StatusBarH = 90
NavigationBarH = 136
layout Location = (0,0)
paddingTop = 0
keyboardH = 765
ContentContainerTop = -765
ContentContainerH = 2204
PanelContainerTop = 1439
PanelContainerH = 765
changeBounds = true
reverseResetState = true
contentContainer Layout = (0,-765,1080,1439)
panelContainer Layout = (0,1439,1080,2204)
2021-11-07 18:14:22.150 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onGlobalLayout => try to set KeyBoardHeight : 765,isShow true
2021-11-07 18:14:22.150 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onGlobalLayout => 界面每一次变化的信息回调
windowSoftInputMode = 19
currentPanelSwitchLayoutVisible = true
screenHeight = 2340
contentHeight = 1349
isFullScreen = false
isNavigationBarShown = true
deviceStatusBarH = 90
deviceNavigationBarH = 136
systemInset = left(90) top(0) right(0) bottom(901)
inset = left(0) top(90) right(0) bottom(130)
currentSystemInfo = statusBarH : 90, navigationBarH : 136 全面屏手势虚拟栏H : 0
currentSystemH = 226
minLimitCloseKeyboardH = 136
minLimitOpenKeyboardH = 300
lastKeyboardH = -6
currentKeyboardInfo = keyboardH : 765, realKeyboardH : 765, isShown : false
2021-11-07 18:14:22.315 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getCompatPanelHeight :765
2021-11-07 18:14:22.315 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getContentContainerTop :-765
2021-11-07 18:14:22.316 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => 界面每一次 layout 的信息回调
layoutInfo = onLayout(changed : false , l : 0 , t : 0 , r : 1080 , b : 2210)
currentPanelState = 显示键盘输入
isPad = false
isFullScreen = false
isPortrait = true
isNavigationShown = true
screenH (static,include SystemUI) = 2340
screenH (static,exclude SystemUI) = 2120
screenH (dynamic,exclude SystemUI) = 1349
localLocation[y] = -494
toolbarH = 0
StatusBarH = 90
NavigationBarH = 136
layout Location = (0,-494)
paddingTop = 0
keyboardH = 765
ContentContainerTop = -765
ContentContainerH = 2698
PanelContainerTop = 1933
PanelContainerH = 765
changeBounds = true
reverseResetState = true
contentContainer Layout = (0,-765,1080,1933)
panelContainer Layout = (0,1933,1080,2698)
2021-11-07 18:14:22.318 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getCompatPanelHeight :765
2021-11-07 18:14:22.318 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => getContentContainerTop :-765
2021-11-07 18:14:22.318 13674-13674/app2.dfhondoctor.com D/LogTracker: PanelSwitchLayout(54322308)#onLayout => 界面每一次 layout 的信息回调
layoutInfo = onLayout(changed : false , l : 0 , t : 0 , r : 1080 , b : 2210)
currentPanelState = 显示键盘输入
isPad = false
isFullScreen = false
isPortrait = true
isNavigationShown = true
screenH (static,include SystemUI) = 2340
screenH (static,exclude SystemUI) = 2120
screenH (dynamic,exclude SystemUI) = 1349
localLocation[y] = -494
toolbarH = 0
StatusBarH = 90
NavigationBarH = 136
layout Location = (0,-494)
paddingTop = 0
keyboardH = 765
ContentContainerTop = -765
ContentContainerH = 2698
PanelContainerTop = 1933
PanelContainerH = 765
changeBounds = false
contentContainer Layout = (0,-765,1080,1933)
panelContainer Layout = (0,1933,1080,2698)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant