Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 )

like image 960
adrianbukros Avatar asked Oct 02 '13 13:10

adrianbukros


1 Answers

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

like image 53
Michele Bontorno Avatar answered Oct 21 '22 10:10

Michele Bontorno