Android TalkBack 経由ですべてのデフォルトの警告ダイアログ ボックスを確認しました。デフォルトの Android Talkback の動作は、ダイアログ ボックス内のすべてのコンテンツ (ノンストップ) を読み上げるものです。必要に応じてカスタマイズする方法はありますか。例えば :
AlertDialog alertDialog = new AlertDialog.Builder(AlertDialogActivity.this).create();
alertDialog.setTitle("Alert Dialog");
alertDialog.setMessage("This is my alert dialog");
alertDialog.setButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
Toast.makeText(getApplicationContext(), "You clicked on OK", Toast.LENGTH_SHORT).show();
}
});
alertDialog.show();
ダイアログが表示されると、自動的に「Alert Dialogue. This is my alert dialog. OK.」と読み上げられます。しかし、「アラートダイアログ」または「これは私のアラートダイアログです」などだけを読むように、それを制御したい.
また、「OK」をタップすると、「OK ボタン」ではなく「OK」のみが表示されます。