I have a custom dialog class as follows where xmlView = R.layout.yourdialoglayout which has 2 buttons. How could I add listeners to these buttons?
heres my class:
public class CustomDialog extends Dialog { public CustomDialog(Context context,int theme,int xmlView) { super(context,theme); requestWindowFeature(Window.FEATURE_NO_TITLE); //Hide the title this.setContentView(xmlView); } public void killDialog() { dismiss(); } }