I have a Recyclerview and one of the items has an edittext , but everytime i clcik on field to start typing the Soft Keyboard opens then closes right away. Has anyone experienced this before ?
Ok everyone knows that to hide a keyboard you need to implement: InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); imm. hideSoftInputFromWindow(getCurrentFocus(). getWindowToken(), 0);
setShowSoftInputOnFocus(false); to disable the software keyboard showing when the EditText is touched. the hideKeyboard(this); call in OnCreate to forcible hide the software keyboard.
Maybe a little too late but I've just had this issue. I solved by adding android:windowSoftInputMode="adjustPan"
to YourActivity
in AndroidManifest.xml
, like:
<activity android:name=".YourActivity" android:windowSoftInputMode="adjustPan"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With