button in listView
Posted
by Nanis
on Stack Overflow
See other posts from Stack Overflow
or by Nanis
Published on 2010-05-11T10:51:25Z
Indexed on
2010/05/11
10:54 UTC
Read the original article
Hit count: 274
hi, I have Button and TextView in my ListView , and I would add listener on button but I can't do it.
Actually I have in my adapter :
[code]
imgClassement.setImageResource(drawable);
imgClassement.setTag(mail);
imgClassement.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View view){
//I would like display an alerts in my activity
}
});
[/code]
The OnClick works but, I would like to display alerts on my activity and I can't do it :/ I don't know how to lie my activity and my adapter
© Stack Overflow or respective owner