I am inflating an xml having button, multiple times and i am able to do so perfectly but the problem is when I click the button,i want to show which button is clicked.
Use the view tag
View.setTag(Object tag);
You can set a string or a complex object like a class to the tag.