android - change the return key -


i want change name of enter button (the button circled in image ) search

enter image description here

so used

  <edittext                 android:imeoptions="actionsearch"                 android:imeactionlabel="search"                   android:id="@+id/et_patientid"                  android:layout_width="400dip"                 android:layout_height="50dip"                 android:layout_torightof="@id/tv_patientid"                 android:background="@android:drawable/editbox_background" /> 

but didn't work

add android:imeoptions="actionsearch" , android:inputtype="text" edittext view

also add editor action listener

edittext.setoneditoractionlistener(new textview.oneditoractionlistener() {     @override     public boolean oneditoraction(textview v, int actionid, keyevent event) {         if (actionid == editorinfo.ime_action_search) {             performsearch();             return true;         }         return false;     } });  <edittext              android:id="@+id/et_patientid"             android:inputtype="text"             android:layout_width="400dip"             android:layout_height="50dip"             android:layout_torightof="@id/tv_patientid"             android:background="@android:drawable/editbox_background"             android:imeoptions="actionsearch"              android:imeactionlabel="search"  /> 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -