开发者

custome control event in list view android

I have a listview. which is mase by custome control.. and custome control class extends baseadapter class. one of my custome control i开发者_如何学Gos button.. so onclick of that particular button I have to find position of row.. pleas tell me howz it possible


listView.setOnItemClickListener(new OnItemClickListener() {

        public void onItemClick(AdapterView<?> arg0, View arg1, int position,
                long arg3) {
            // TODO Auto-generated method stub

        }
    });

in above code "onItemClick" method by using third parameter we can get the position of the row

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜