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
精彩评论