android - 在离子视图 3 中激活键盘时出错
问题描述
我有以下问题,我的apk,在ionic 3中制作,当它已经编译时,主屏幕显示是这样的。
一切都很好,但是当我激活 taclado 来写入时。
我回到主屏幕发生这种情况
您可能会注意到,屏幕被切断,因为它丢失了。我不知道为什么会发生这种情况,有什么对我有帮助的,谢谢你的关注。
解决方案
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" />
推荐阅读
- schema.org - 在 MusicEvent 架构中,为什么 Google 无法识别 Person 中的 jobTitle 属性?
- python - Locust:如何指定获取查询参数的获取请求
- sql - 制作一个简单的 SQL 数据透视表
- c# - 在网络方法中读取两个列表
- javascript - 在 Selenium + NodeJS 中以字符串形式在下拉列表中获取当前选择的选项
- vue.js - 如何在Vue中的插槽内设置组件的属性?
- angular - 从 5 到 6 的角度迁移后无法构建 - 找不到模块“打字稿”
- grails - 检查 instanceOf 后的 ClassCastException
- c++11 - 如果我将向量声明为全局变量,那么向量分配在哪里?
- java - 用于 jsp 标记中的每个值