简体   繁体   中英

Android slow soft keyboard opening

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.

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 :(

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM