I've created a method which adds a number of TextViews to a LinearLayout in a while loop. I'm having trouble identifying those TextViews by click. If I click on them, it prints out that they are the ID of my linear layout. Is there any way I can access them?
while(i.hasNext()){
TextView x = new TextView(this);
linearLayout.addView(x);
}
EDIT: I understand this was an absurdly dumb question. This...
x.setOnClickListener(this);
...did the trick.