Open mcanikhilprajapati opened 1 month ago
To block the EditText from opening the soft keyboard when it gains focus, you can:
Set inputType="none".
Override the onFocusChangeListener to hide the keyboard programmatically.
Modify the android:windowSoftInputMode in your manifest to control keyboard behavior.
Use OnTouchListener to intercept touch events.
Create a custom EditText that disables keyboard input.
Thanks for quick response, let me test
binding!!.otpView.otpEditText!!.showSoftInputOnFocus = false and in manifeast android:windowSoftInputMode="stateAlwaysHidden"
works fine
Thanks alot
I dont want to show keyboard and want to use my own way to input for that How can I disable keyboard?