I want to get the index of the button clicked from a list of buttons when a button is clicked from the list of buttons!
If I have button1, button2, and button3 in the list, then after adding the click listener for the buttons in code, I want to detect which button is clicked when I press any of those three buttons!
Can you share the code you’re using so we know how you’re assigning click listeners? The answer may vary ![]()