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

键盘没有把输入框顶起来。偶现 #213

Open
lee1122-create opened this issue Jul 27, 2024 · 3 comments
Open

键盘没有把输入框顶起来。偶现 #213

lee1122-create opened this issue Jul 27, 2024 · 3 comments

Comments

@lee1122-create
Copy link

lee1122-create commented Jul 27, 2024

oppo 手机。型号A54 安卓版本11 使用demo也偶现会出现问题。出现问题的时候。 会有这个日志:
keyboard height = 132 2024-07-27 14:21:19.006 16063-16063 LogTracker media.voko.android D onStart => realKeyboardH height = 0

如果没有问题的话
2024-07-27 15:07:01.067 26501-26501 LogTracker media.voko.android D onStart => keyboard height = 897 2024-07-27 15:07:01.067 26501-26501 LogTracker media.voko.android D onStart => realKeyboardH height = 765

D PanelSwitchLayout#WindowInsetsListener => KeyBoardHeight : 0,isShow false
2024-07-27 14:21:15.302 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#WindowInsetsListener => KeyBoardHeight : 0,isShow false
2024-07-27 14:21:15.329 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:15.384 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:15.462 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:15.533 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:15.561 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:18.833 16063-16063 LogTracker media.voko.android D OnEditFocusChangeListener#onFocusChange => EditText has focus ( true )
2024-07-27 14:21:18.870 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#checkoutPanel => checkout success ! lastPanel's id : -1 , panel's id :0
2024-07-27 14:21:18.870 16063-16063 LogTracker media.voko.android D OnPanelChangeListener#onKeyboard => panel: keyboard
2024-07-27 14:21:18.881 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:18.969 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#WindowInsetsListener => KeyBoardHeight : 765,isShow true
2024-07-27 14:21:18.995 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#KeyboardStateChanged => try to set KeyBoardHeight : 765,isShow true
2024-07-27 14:21:18.995 16063-16063 LogTracker media.voko.android D PanelUtil#onGlobalLayout => current KeyBoardHeight is equal,just ignore!
2024-07-27 14:21:18.996 16063-16063 LogTracker media.voko.android D OnKeyboardStateListener#onKeyboardChange => Keyboard is showing ( true ),height is 765
2024-07-27 14:21:18.996 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#WindowInsetsListener => requestLayout
2024-07-27 14:21:19.001 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.006 16063-16063 LogTracker media.voko.android D onStart => hasSoftInput = true
2024-07-27 14:21:19.006 16063-16063 LogTracker media.voko.android D onStart => keyboard height = 132
2024-07-27 14:21:19.006 16063-16063 LogTracker media.voko.android D onStart => realKeyboardH height = 0
2024-07-27 14:21:19.012 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.013 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.0
softInputHeight = 0
decorView.bottom = 2400
2024-07-27 14:21:19.021 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.021 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.0
softInputHeight = 0
decorView.bottom = 2400
2024-07-27 14:21:19.028 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.028 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.038596492
softInputHeight = 2
decorView.bottom = 2400
2024-07-27 14:21:19.035 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.035 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.077192985
softInputHeight = 10
decorView.bottom = 2400
2024-07-27 14:21:19.046 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.046 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.11578947
softInputHeight = 28
decorView.bottom = 2400
2024-07-27 14:21:19.058 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.058 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.15438597
softInputHeight = 48
decorView.bottom = 2400
2024-07-27 14:21:19.069 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.069 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.19298245
softInputHeight = 63
decorView.bottom = 2400
2024-07-27 14:21:19.079 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.079 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.23157895
softInputHeight = 75
decorView.bottom = 2400
2024-07-27 14:21:19.090 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.090 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.27017543
softInputHeight = 84
decorView.bottom = 2400
2024-07-27 14:21:19.102 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.102 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.30877194
softInputHeight = 92
decorView.bottom = 2400
2024-07-27 14:21:19.111 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.111 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.34736842
softInputHeight = 98
decorView.bottom = 2400
2024-07-27 14:21:19.123 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.123 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.38947368
softInputHeight = 104
decorView.bottom = 2400
2024-07-27 14:21:19.133 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.134 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.4280702
softInputHeight = 109
decorView.bottom = 2400
2024-07-27 14:21:19.144 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.145 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.46666667
softInputHeight = 112
decorView.bottom = 2400
2024-07-27 14:21:19.156 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.156 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.50526315
softInputHeight = 116
decorView.bottom = 2400
2024-07-27 14:21:19.167 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.167 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.54385966
softInputHeight = 119
decorView.bottom = 2400
2024-07-27 14:21:19.178 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.178 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.5824561
softInputHeight = 121
decorView.bottom = 2400
2024-07-27 14:21:19.189 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.189 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.6210526
softInputHeight = 123
decorView.bottom = 2400
2024-07-27 14:21:19.200 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.200 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.65964913
softInputHeight = 125
decorView.bottom = 2400
2024-07-27 14:21:19.211 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.211 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.6982456
softInputHeight = 127
decorView.bottom = 2400
2024-07-27 14:21:19.222 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.222 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.7368421
softInputHeight = 128
decorView.bottom = 2400
2024-07-27 14:21:19.233 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.233 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.77894735
softInputHeight = 129
decorView.bottom = 2400
2024-07-27 14:21:19.244 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.244 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.81754386
softInputHeight = 130
decorView.bottom = 2400
2024-07-27 14:21:19.255 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.255 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.8561404
softInputHeight = 130
decorView.bottom = 2400
2024-07-27 14:21:19.267 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.267 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.8947368
softInputHeight = 131
decorView.bottom = 2400
2024-07-27 14:21:19.278 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.278 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.93333334
softInputHeight = 131
decorView.bottom = 2400
2024-07-27 14:21:19.289 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.289 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.97192985
softInputHeight = 131
decorView.bottom = 2400
2024-07-27 14:21:19.302 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:21:19.302 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 1.0
softInputHeight = 132
decorView.bottom = 2400
2024-07-27 14:21:19.303 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#WindowInsetsListener => KeyBoardHeight : 765,isShow true
2024-07-27 14:22:21.773 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#WindowInsetsListener => KeyBoardHeight : 0,isShow false
2024-07-27 14:22:21.778 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#checkoutPanel => checkout success ! lastPanel's id : 0 , panel's id :-1
2024-07-27 14:22:21.778 16063-16063 LogTracker media.voko.android D OnPanelChangeListener#onNone => panel: none
2024-07-27 14:22:21.778 16063-16063 LogTracker media.voko.android D OnKeyboardStateListener#onKeyboardChange => Keyboard is showing ( false ),height is 0
2024-07-27 14:22:21.778 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#WindowInsetsListener => requestLayout
2024-07-27 14:22:21.780 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:22:21.781 16063-16063 LogTracker media.voko.android D onStart => hasSoftInput = false
2024-07-27 14:22:21.788 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:22:21.789 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.0
softInputHeight = 897
decorView.bottom = 2400
translationY = -765.0
2024-07-27 14:22:21.795 16063-16063 LogTracker media.voko.android D PanelSwitchLayout#onLayout => getCompatPanelHeight :765
2024-07-27 14:22:21.795 16063-16063 LogTracker media.voko.android D onProgress => keyboard animation progress
fraction = 0.0
softInputHeight = 897
decorView.bottom = 2400
translationY = -765.0

@YummyLau
Copy link
Collaborator

新版本已经解决

@lee1122-create
Copy link
Author

我用的就是最新的版本 还没有解决

@YummyLau
Copy link
Collaborator

你关闭android11特性试试

@YummyLau YummyLau reopened this Sep 13, 2024
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

2 participants