I am having an edittext where i am setting the following property so that i can display the done button on the keyboard when user click on the edittext.. edittext.setimeoptions(editorinfo.ime_action_done); when user clicks the done button on the screen keyboard (finished typing) i want to change a radiobutton state.. how can i track done button when it is hit from screen keyboard?. In portrait mode the key label is go and the action id passed to the callback method is 2, accordingly to the imeoptions setting. in landscape mode the key label/id is go/2 as the portrait mode, while the button displayed in the input area is custom/666, accordingly to the imeactionlabel and imeactionid attributes.. In this article, we will create an application which replaces the default action “done” with “go” and on clicking the “go” button, the url entered in the edittext widget will be opened in a web browser..
A edittext is an overlay over textview that configures itself to be editable. it is the predefined subclass of textview that includes rich editing capabilities. following are the important attributes related to edittext control. you can check android official documentation for complete list of. Android quick tip. close the keyboard when you click ‘done’… seems like a simple task, right? unfortunately, clicking ‘done’ or the ‘return’ button in even a single line android edittext will not drop focus and close the soft keyboard.. Android edittext text change listener example android programmatically update application when a new version is available jquery get input text value example, and how to set textbox value.