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

在使用蓝牙键盘场景下,顶起底部布局的高度不正确 #130

Open
feimenggo opened this issue Apr 9, 2021 · 3 comments
Open
Labels
feature-request New feature will be added on Future version

Comments

@feimenggo
Copy link

Androidx版本:是
PanelSwitchHelper版本:v1.3.13
手机型号: 小米9
手机系统版本: Android 10
问题描述: 在使用蓝牙键盘场景下,顶起底部布局的高度不正确。正常情况是使用蓝牙键盘不会显示虚拟键盘,所以占用的高度是输入预览条的高度。

录屏提供:
https://user-images.githubusercontent.com/12608693/114138094-b397ee00-993f-11eb-8fc6-fd842df97964.mp4

Log提供:
Log.txt

@feimenggo
Copy link
Author

找到解决办法了,我发现键盘是否显示的判断,受minLimitOpenKeyboardHeight的影响,把它设置足够小就可以正常检测键盘显隐状态了。

@feimenggo
Copy link
Author

针对使用蓝牙键盘高度不正确的问题,做了以下修改
修复使用蓝牙外接键盘高度不正确的问题.patch.zip

@YummyLau
Copy link
Collaborator

YummyLau commented Apr 9, 2021

@feimenggo 感谢反馈。
minLimitOpenKeyboardHeight 不仅仅用来检测键盘,里面设置的值有专门适配过某些机型的,具体修改的时候比较慎重。
目前手机使用蓝牙键盘是未兼容的,你提供的思路我研究测试下。

@YummyLau YummyLau added the feature-request New feature will be added on Future version label May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature will be added on Future version
Projects
None yet
Development

No branches or pull requests

2 participants