I've made a class MyDialog that extends Dialog. Within, I'm trying to set click listeners to the buttons, but Eclipse is giving me issues. Here's the problematic code:
private void setOnClickListeners() {
myButton.setOnClickListener( new OnClickListener() {
@Override
public void onClick(View v) {
//do stuff
}
});
}
Eclipse is showing OnClickListener as a DialogInterface.OnClickListener, which seems to be the root of the problem. Can I make this work the same as it would from an Activity?