-->

Android keyboard overlapping input fields, view do

2019-04-08 01:17发布

问题:

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

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

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.

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

回答1:

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

i.e. something like:

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