android - Soft keypad popsup and hides slowly in fragment and makes typing sluggish -


I am using [sliding menu] [1] in my app. I use Viewpager to show three pieces in the tab in one piece. In three pieces, EditTexts inside LinearLayouts are in ScrollView . So my XML XML is like this:

RELATED LAYOUTS> ScrollView & gt; LinearLayout & gt; Edit Text .

After the focus every EditText , typing is very slowly (it takes 1-2 seconds to answer). I thought that this is due to the soft keypad which does not do anything to try all possible values ​​for so I windowSoftInputMode tries to change every time the size or pan. I also used after an activity had used the same XML, where typing is very smooth typing (When the user clicks on the IME button), the keypad is hidden is very slow (takes 3 seconds). What can be the problem? And to avoid any workings?

By the way, I do not have to have TextWatchers set EditTexts . In

Edit:

When I remove the EditTexts from the other two pieces, so it is smooth I but only When all three pieces have EditTexts , then it is sluggish.

I android: windowSoftInputMode = "Do not adjust" adding that it Does not resize and does not scroll. And in order to edit those readers, the focus was added to listeners who are at the bottom of the screen so that they appear to users while typing.

  editText.setOnFocusChangeListener (new onFocus Legend () {@Override public void OnFocusChange (see V, Boolean Hafoks) {if (Hafoks) {scroll.scrollTo (rootView.getWidth (), rootView. GetHeight ()); // rootview is the scene of my parents' piece}}});  

However, if anyone knows a great solution, then post it.


Comments