I have Alert-dialogwith two buttons (Yes / No) If the user clicks the yesor button no, the warning dialog behaves normally and falls into the click method, but if the user clicks or touches somewhere outside the warning dialog, it just disappears, and nothing will happen, is there a way to prevent the dialog from disappearing when the user clicked somewhere else.
Alert-dialog
yes
no
Disable the Disable Close dialog box when using an external contact use
dialog.setCanceledOnTouchOutside(false);
AlertDialog..
AlertDialog
alertDialog.setCanceledOnTouchOutside(false);
.
AlertDialog.
YourAlertDialog.setCanceledOnTouchOutside(false);
,
alertDialog.setCancelable(false).
, .
:
alertDialog.setCancelable(false); alertDialog.setCanceledOnTouchOutside(false);
Source: https://habr.com/ru/post/1533281/More articles:The constructor name and class name are the same in Java. What for? - javaRemove unwanted image area with matlab - imageHow to connect JBoss 7.1.1 remoting-jmx via java code? - jbosshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1533279/grouping-consecutive-elements-together-using-javascript&usg=ALkJrhh0JXFeF69tgvtTcoqr0H05nf7hlAJSTree - dynamically load nodes - jqueryhow to install OS X TTS voices from Objective-C - objective-cError clicking a button in Ionic framework - angularjsHow to load new voice for say function using AppleScript? - applescriptГрафическая диаграмма Google - отключить всплывающую подсказку для одного столбца - linechartUsing the Google visualization API, how do I disable tooltips for a single column? - google-visualizationAll Articles