<How can i add a new edit text everytime i write s...
# stackoverflow
u
How can i add a new edit text everytime i write something in the last added edit text (Kotlin) I want that the user can make a list of his hobbies. I dont know how long this list is. So I have a linear layout with an edit text in it and and a button where he can add an edittext in the linearlayout, but i dont like that the user has to click the button everytime he wants to add a hobbie, so i want that a new edit text is added when the user wrote something in the last edit text. My problam is that i dont now how to track when the edit text is no longer empty, to add another edit text...