I am new on android developing and I am meat a problem trying to associate a ListView with Buttons on the row.I am declaring the button in my adapter but I cant fire a key listener in my activity.
public class ntAdapter extends BaseAdapter {
holder.image = (ImageView) convertView.findViewById(R.id.imageView1);
holder.AddBut=(ImageButton) convertView.findViewById(R.id.imageButton1);
}
In my activity I have a listview
public class Zmenu extends Activity {
ntAdapter adapter=new ntAdapter(this);
ListView l1 = (ListView) findViewById(R.id.ListView01);
l1.setAdapter(adapter);
}
What is the code in this case to have a key listener on my image Button??