hi i am generating buttons dynamically in whic开发者_JS百科h i want to implement click event for each button .how can i do this
btn.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
//your code here
}
})
精彩评论