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

【BUG反馈】 输入框被顶上去甚至顶出屏幕 #495

Closed
4 tasks done
linsiang opened this issue Mar 24, 2025 · 2 comments
Closed
4 tasks done

【BUG反馈】 输入框被顶上去甚至顶出屏幕 #495

linsiang opened this issue Mar 24, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@linsiang
Copy link

⚠️ 重要阅读

  • 请确保你已升级至 最新发布的测试版本,旧版本存在的问题不再处理。
  • 请确保你已在 已有的issues 中查询过没有类似的问题。
  • 请先确认您已阅读《常见问题》
  • 如有条件建议尝试拉取整个项目,尝试运行 Demo app,并模拟在 Demo 环境中运行可能存在问题的代码,如果可以复现请提交 issues 并附上复现代码。

问题描述

我遇到了在项目中引入dialogx版本大于0.0.46,虚拟键盘打开时,输入框就会被顶上去,严重的直接顶出屏幕无法看到输入框

DialogX 版本

大于0.0.46都有这个问题

设备信息

任何设备

是否在 Demo 中能复现此问题?

问题截图/视频

[截屏/视频 #/

错误日志

@linsiang linsiang added the bug Something isn't working label Mar 24, 2025
@kongzue
Copy link
Owner

kongzue commented Mar 24, 2025

这是符合预期的设计,当输入法弹出时应当主动调整对话框的位置以避免输入法的遮挡。

Image

特殊情况如果需要禁用此功能,可以通过 .setEnableImmersiveMode(false),例如:

new InputDialog("标题", "正文内容", "确定", "取消", "正在输入的文字")
        .setInputText("Hello World")
        .setOkButton(new OnInputDialogButtonClickListener<InputDialog>() {
            @Override
            public boolean onClick(InputDialog baseDialog, View v, String inputStr) {
                PopTip.show("输入的内容:" + inputStr);
                return false;
            }
        })
        .setEnableImmersiveMode(false)      //禁用安全区适配
        .show();

@kongzue kongzue added the 等待反馈 存疑或问题需要进一步确认 label Mar 24, 2025
@linsiang
Copy link
Author

好的,感谢

@stale stale bot removed the 等待反馈 存疑或问题需要进一步确认 label Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants