开发者

click event for dynamic generated buttons

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
        }
    })
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜