So I'm creating an activity where users can create a poll.
I have:
1- Dynamically-added EditTexts
2- A List<EditText> allEds = new ArrayList<>();
that holds all the EditText views.
3- also dynamically attaching ImageButtons '❌' that work as a deletion tool attached on each and every EditText.
I simply want to:
Detect which EditText view the user deletes, in order to remove it synchronically from the allEds List.
In other words, when a user clicks on a deletion button attached to an EditText (besides deleting both views which I successfully did) I want to know which deletion button on which EditText was clicked and remove its whole value from the ArrayList.
Help me please.