I have a EditText field in my activity. The user can change the text in that field using the virtual keyboard. Once the user presses the enter key on the keyboard, I want to perform some action. So, how do I implement a setOnClickListener to the enter button on the keyboard?
Share
use
onKeyListenerfor checking Enter pressfor e.g..
for more information, check the official documentation
Also you can see that example