Android键盘重叠了输入字段,视图不会自动滚动 [英] Android keyboard overlapping input fields, view doesn't scroll automatically

查看:75
本文介绍了Android键盘重叠了输入字段,视图不会自动滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有此问题中描述的相同问题,但在 Trigger.io .不幸的是,该解决方案需要编辑AndroidManifest.xml,这在Trigger.io中似乎是不可能的

I have the same problem described in this question, but on Trigger.io. Unfortunately, the solution requires to edit AndroidManifest.xml, which appears to be impossible in Trigger.io

在我的某些应用程序视图中,Android键盘与某些输入字段重叠,因此很难输入值.

In some of my app views, the Android keyboard is overlapping some input fields, making it difficult to input values.

以下是显示该问题的几个屏幕截图. "Senha"字段被android键盘覆盖,即使用户输入了值,视图也不会滚动到该字段.

Here is a couple of screenshots showing the problem. The "Senha" field is overlapped by the android keyboard, and the view doesn't scroll to it, even after the user inputs a value.

我尝试了trigger.io电子邮件支持,但他们要求我在此处搜索答案...

I tried the trigger.io email support, but they asked me to search here for an answer...

推荐答案

如果您想对AndroidManifest.xml进行更改,最好的选择是为您的应用程序创建一个本机模块:

If you want to make changes to the AndroidManifest.xml your best bet would be to create a native module for your apps:

https://trigger.io/docs/current/api/native_modules/index.html

具体来说,您可以通过创建自定义构建步骤来修改清单:

Specifically, you can make modifications to the manifest by creating a custom build step:

https://trigger.io/docs/current/api/native_modules/native_build_steps.html

即像这样:

[
    {
        "do": {
            "android_add_to_activity_manifest_attributes": {
                "attributes": {
                    "android:windowSoftInputMode": "adjustResize"
                }
            }
        }
    }
]

这篇关于Android键盘重叠了输入字段,视图不会自动滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆