Cocos2dx - 删除“完成” android 中软键盘上方的按钮

发布于 2025-01-17 06:35:51 字数 2264 浏览 2 评论 0原文

我已经检查了一些关于如何在软键盘上方添加“完成”按钮的问题,但没有任何关于如何删除该按钮的问题。当我单击应用程序中的任何 EditText 并打开软键盘时,将显示“完成”按钮。我想隐藏或不想显示该按钮。

另外最重要的一点是应用程序是在“Cocos2dx游戏引擎”上开发并导出的。现在我已经在 Android Studio Arctic Fox 2020.3.1 中打开导出的项目并运行该项目,所以有没有任何用于布局设计的 XML 文件。

我已经检查过这些是问题以及其他与此相关的文章/博客。 问题 1问题 2问题 3问题 4问题 5问题 6问题 7, < a href="https://stackoverflow.com/questions/5307264/how-to-prevent-soft-keyboard-from-resizing-background-image">问题 8,问题 9问题 10第 1 条文章2 等。

下面是正常屏幕

在此处输入图像描述

一旦软键盘打开,它将显示如下

在此处输入图像描述

我已经在超过 10 台设备以及 Android 8.1、Android 10、Android 11 中测试了应用程序,但这种情况仅发生在三星 a52 设备中。

如有帮助,将不胜感激。

I have checked some of the question that how to add "DONE" button above soft keyboard but there is no any questions that how to remove that button. when I click on any EditText in the app and once soft keyboard open that "DONE" button will display. I want to hide or don't want to display that button.

Another most important thing is application is developed on "Cocos2dx Game Engine" and exported. Now I have opened that exported project in Android Studio Arctic Fox 2020.3.1 and run the project, so there is no any XML files for layout design.

I have checked these are the question and other article/blog also related to this. Question 1, Question 2, Question 3, Question 4, Question 5, Question 6, Question 7, Question 8, Question 9, Question 10 and Article 1, Article 2 etc.

Below is normal screen

enter image description here

and once soft keyboard is opened it will be displayed as below

enter image description here

I have tested app on more then 10+ devices and also in Android 8.1, Android 10, Android 11 but this thing happen only in Samsung a52 device.

Help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文