I have an Array of dynamically created EditText in Java and I have a problem to set focus correctly on them.
How do I manage the OnFocusChangeListener on an array of EditText?
I have an Array of dynamically created EditText in Java and I have a
Share
Inside your
onFocusChange(), add thismEditText.requestFocus()where mEditText would be the the one to which you want to set the current focus.Also, you can assign and retrieve ids of the EditTexts in your array by
setId()andgetId().Hope this helps!