ダイアログがないため、以下のコードをどのように使用するか説明してください。
var message = text;
var title = "INFO";
var buttonLabels = "OK";
navigator.notification.confirm(message, null, title, buttonLabels);
このダイアログの外側をクリックしたときに上記のダイアログを閉じる方法をモバイルアプリケーションで誰かが説明できますか?
[OK] ボタンをクリックしたときにのみ閉じられます。
new AlertDialog.Builder(this)
.setTitle(Your Title)
.setMessage(Your Message)
.setCancelable(true)
.setPositiveButton("Yes", new DialogInterface.OnClickListener()
{
@Override
public void onClick(DialogInterface dialog, int which) {
//Action to be performed on click `
}
})
.setNegativeButton("No", null)//Keep If you want to
.show();
これを試して..
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加