There Are Two Keyboards Appear When Press On An Edit Text
I am trying on a view as below: A EditText A RecycleView Result: When I press on edit text, then there 2 keyboards which appear in order. PS: THIS ISSUE DON'T HAPPEN WITH SINGL
Solution 1:
what did you mean? on Single edit text two keyboard appear or two different keyboard appears on two edit text.
Note: I checked your app it show only number keyboard cause in edit text,<android:inputType="number"/>
Here Code which you need
editText.setOnKeyListener(newView.OnKeyListener() {
@OverridepublicbooleanonKey(View v, int keyCode, KeyEvent event) {
if(keyCode==KeyEvent.KEYCODE_ENTER)
{
returntrue;
}
returnfalse;
}
});
just add to your Activity.java
Solution 2:
At first time ,when activity lunch add this line in AndroidManifest file to hide keyboard.
android:windowSoftInputMode="stateHidden"
android:configChanges="orientation|screenSize|keyboardHidden"
And add this line in EditText Property.
android:imeOptions="actionDone"
This will hide your keyboard and only show when you click on EditText of Particuler Type as input type is Number in your xml. Hope this will help you.
Post a Comment for "There Are Two Keyboards Appear When Press On An Edit Text"