Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Softkeyboard enter the numeric value into edittext very slow
    text
    copied!<p>I have TableLayout, which contain number of products.Each row contain code, description qty , price, discount value, ..... Depends on the user enter quantity , discount value, discount quantity &amp; some other values also will calculate.</p> <p>when user click on the editText soft keyboard will come this one also ok, working fine</p> <p>My problem is when user press numeric keys very slow to show in the EditText.</p> <p>For example I have press 3 from keyboard, after 7 or 8 seconds only it show in that particular editText.How can I reduce this time line...</p> <p>This is my product image:</p> <p><img src="https://i.stack.imgur.com/R82RJ.png" alt="ProductImage"></p> <p>Please Anybody suggest why this happening?</p> <p>Code like this :</p> <pre><code> for (int i = initil; i &lt;end; i++) { ............. ............ final EditText txtQty = new EditText(this); txtQty.setHeight(1); txtQty.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 42)); txtQty.setInputType(InputType.TYPE_CLASS_PHONE); txtQty.setImeOptions(EditorInfo.IME_ACTION_DONE); txtQty.setImeOptions(EditorInfo.IME_ACTION_NEXT); txtQty.setSelectAllOnFocus(true); txtQty.setTextSize(9); txtQty.setHint("0.0"); // txtQty.setOnEditorActionListener(new DoneOnEditorActionListener()); // txtQty.setHighlightColor(R.color.green); tr.addView(txtQty); InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); mgr.showSoftInput(txtQty, InputMethodManager.SHOW_IMPLICIT); mgr.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT,InputMethodManager.HIDE_IMPLICIT_ONLY); ((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(txtQty.getWindowToken(), 0); txtQty.setOnEditorActionListener( new OnEditorActionListener() { public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { Log.i("KeyBoard" ,"Inside the Edit Text"); ............................. } }); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload