I copied the entire code from here
Android custom numeric keyboard
and used it inside an AlertDialog
. Now when I debug the application, the onClick()
isn't getting invoked.
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setView(R.layout.keypad_layout);
builder.setCancelable(false).setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
}
});
builder.setPositiveButton("Modify", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
}
});
builder.create().show();\
The alert dialog is showing and positive and negative buttons work only problem is that I cannot access the views inside the layout