Reputation: 43
hi i am generating buttons dynamically in which i want to implement click event for each button .how can i do this
Upvotes: 0
Views: 1328
Reputation: 11946
btn.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
//your code here
}
})
Upvotes: 1