[转]Android监听ListView里Button事件

本文转自:http://blog.csdn.net/lovediji/article/details/6753349

public View getView(int position, View convertView, ViewGroup parent) {
convertView = mInflate.inflate(R.layout.validate_friend_information_item,null);
Button cancle_button = (Button) convertView
.findViewById(R.id.validate_friend_information_canclebutton);

final int p = position;
cancle_button.setOnClickListener(new Button.OnClickListener() {
public void onClick(View view) {
System.out.println("取消好友验证:" + list.get(p).get("friendName"));
}
});

return convertView;
}

[转]Android监听ListView里Button事件,布布扣,bubuko.com

[转]Android监听ListView里Button事件

上一篇:[转]Android杂谈--ListView之BaseAdapter的使用


下一篇:android学习日记24--Android 菜单开发