I am using Listview With custom Adapter which contain imageview,textview and 3 button (insert,update,delete)requirement is that custom adapter is call every
set the tag for each view in get view method by setTag()
@Override
public View getView(int position, View convertView, ViewGroup parent) {
if (convertView == null) {
LayoutInflater inflater = context.getLayoutInflater();
convertView = inflater.inflate(.....);
}
ur_view= (views) convertView.findViewById(R.id.....);
ur_view.setTag(position);
ur_view.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
//do something
}
});
It will work