- Home /
Question by
xxmariofer · Aug 11, 2021 at 10:22 AM ·
androidunity 2dmanifest
Soft Keyboard Hides Input Field - AndroidManifest not working?
Hello,
By default, unity soft keyboard, atleast in android, hides the InputField. To change this behaviour, I thought simply updating the AndroidManifest.xml, as mentioned in the android documentation https://developer.android.com/training/keyboard-input/visibility So I updated the main activity in the manifest like this:
<activity android:name="com.unity3d.player.UnityPlayerActivity" android:theme="@style/UnityThemeSelector" android:windowSoftInputMode="adjustPan">
but doesnt work.
I have decompiled the Apk to check that unity wasnt overriding the manifest settings and I see the end up manifest inside the apk looks like this which seems totally fine to me:
<activity
android:theme="@ref/0x7f040001"
android:name="com.unity3d.player.UnityPlayerActivity"
android:launchMode="2"
android:screenOrientation="6"
android:configChanges="0x40003fff"
android:windowSoftInputMode="0x10"
android:hardwareAccelerated="true">
I know I could re-scale the application when the inputs get selected, but that really looks extremly inneficient and a lot of work to setup.
Is there any other solution?
Comment