I have 7 edittext boxes in my xml. I’m using the OnFocusChangeListener to read the value from edittext and i’m using that value for my calculation.I want to make my edittext to lose its focus when i click on the done button in the soft keyboard.so that i can get the value in the edittext.
Share
Call
clearFocusmethod ofEditTextto lose focus when done button is clicked from soft-keyboard. do it as:and also add
android:imeOptions="actionDone"in edittext xml