I have a dialog:
final Dialog dialog = new Dialog(context);
dialog.setContentView(R.layout.location_dialog);
dialog.setTitle("My dialog");
dialog.setMessage("My dialog content");
dialog.setCancelable(true);
dialog.setCanceledOnTouchOutside(true);
dialog.show();
I want to be able to detect strokes on top of the lines of a dialog box. I can easily detect any touches outside the dialog box using the build method
dialog.setCanceledOnTouchOutside(true);
But how can I detect strokes inside this area?

source
share