ここで別の回答のコードを使用しています:
AlertDialog.Builder adb = new AlertDialog.Builder(this);
Dialog d = adb.setView(new View(this)).create();
// (That new View is just there to have something inside the dialog that can grow big enough to cover the whole screen.)
WindowManager.LayoutParams lp = new WindowManager.LayoutParams();
lp.copyFrom(d.getWindow().getAttributes());
lp.width = WindowManager.LayoutParams.FILL_PARENT;
lp.height = WindowManager.LayoutParams.FILL_PARENT;
d.show();
d.getWindow().setAttributes(lp);
alertDialog を全画面表示にするのは本当に便利だと思いますが、色は、黒いテキストの白い背景ではなく、白いテキストの黒い背景になります。このコードがどのように色を変えるのかわかりません。誰でも情報を提供できますか?