Android的缓慢软键盘开幕 [英] Android slow soft keyboard opening

查看:202
本文介绍了Android的缓慢软键盘开幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常恼人的问题。在A制成的登记表格Android和当一个EditText获得焦点键盘出现。但它真的很慢。这需要5秒以上,甚至在高端设备。

I have a really annoying problem. A made registration form in android and when an EditText get focus the keyboard comes up. But its really slow. It takes 5 sec or more even on high-end devices.

我们的应用程序正在使用的碎片在几层。所以我想,也许计算所有这些层向上滑动(当键盘出现)长镜头这一点。当我设置adjustNothing清单文件中的键盘快捷显示,在另一个活动,我们只有一层片段(这一层的登记表),它也出现迅速。

Our application is using fragments in several layers. So i thought maybe calculating all these layers to slide up(when the keyboard comes up) takes this long. When i set "adjustNothing" in the manifest file keyboard shows quickly, and in another activity where we have only one layer of fragments(this layer is the registration form) it also comes up quickly.

任何人都有类似的问题或建议? (隐藏或删除片段的注册下面不是一个选项)

Anyone have a similar problem or suggestion? (hiding or removing fragments below the registration is not an option )

推荐答案

我有同样的问题两次。不会有太多的话题围绕这一点:(

I had the same problem twice. There aren't many topic around about this :(

我解决了第一个通过设置安卓 和安卓windowSoftInputMode =adjustPan的片段,其中的EditTexts位于主要布局

I solved the first one by setting android:isScrollContainer="false" in the ListView and android:windowSoftInputMode="adjustPan" in the main Layout of the Fragment in which the EditTexts are located.

二是只包含一个ListView一个片段,它仍然是一个问题:(

The second one is just a Fragment that contains a ListView, and it's still a problem :'(

这篇关于Android的缓慢软键盘开幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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