Skip to content Skip to sidebar Skip to footer

How To Setup Onfocuschangelistener() On A Dynamically Created Set Of Edittexts?

i have this code in which i inflate a linearLayout containing 3 editTexts everytime an edittext of the previous lineaLayout loses focus. I want to have the onFocusChangeListener on

Solution 1:

You need to extend the EditText class so you create your own type of View where might want to have an inner class which will implement View.OnFocusChangeListener and public method so you can setup listener with an instance of this inner class using the instance of newly created type.


Post a Comment for "How To Setup Onfocuschangelistener() On A Dynamically Created Set Of Edittexts?"