I created new TextViews in my GUI dynamically and I collected them in an array of TextViews, but I can’t set up OnClickListeners because of that (they’re inside of an array)…
So what I want to do now is evaluate if the TextView is clicked and handle that event, but I’m not sure how to do so…
If I’m not being to clear, please tell so I can write down the problem with all the details…
Thanks!
Even when you are creating rows dynamically you still have a reference to the TextView. Simply add the OnClickListener to this reference, like this: