I have multiple action listeners defined for single EditText field,
one in the Activity:
editText.setOnEditorActionListener(this);
and another in the View definition:
editText.setOnEditorActionListener(new EditText.OnEditorActionListener() {...});
Is there a way for both listeners to run? Now only the one in the Activity runs.
I can’t change(simplify/refactor) the code to make all this be at single place(because it’s complicated as hell).
Thanks ahead!
add a Reference of the previous OnEditorActionListener when u set a new OnEditorActionListener
In new OnEditorActionListener call to the previous one.