首页 > 解决方案 > 在离子视图 3 中激活键盘时出错

问题描述

我有以下问题,我的apk,在ionic 3中制作,当它已经编译时,主屏幕显示是这样的。

在此处输入图像描述

一切都很好,但是当我激活 taclado 来写入时。

在此处输入图像描述

我回到主屏幕发生这种情况

在此处输入图像描述

您可能会注意到,屏幕被切断,因为它丢失了。我不知道为什么会发生这种情况,有什么对我有帮助的,谢谢你的关注。

标签: androidangularionic-frameworkionic3

解决方案


Open the manifest.xml from the platform/android folder and in the main activity tag replace the android:windowSoftInputMode="adjustResize" attribute with android:windowSoftInputMode="adjustPan"
also try adding below in config.xml
<preference name="KeyboardDisplayRequiresUserAction" value="false" />

推荐阅读