you do this by finding the edittext link and setting the belows code for ur edittext:
editText.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_SEARCH) { performSearch();
here I took the name editText, which is ref. editextbox which u added and you have to add actionId == type of ime parameters you set
source share