このダイアログの外側をクリックしたときに確認ボックスが閉じられないようにするモバイル アプリケーションの方法

チェタン・アナンド

ダイアログがないため、以下のコードをどのように使用するか説明してください。

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]

編集
0

コメントを追加

0

関連記事

Related 関連記事

ホットタグ

アーカイブ