画面全体に表示する必要がある警告ダイアログを使用していますが、高さはテキストの長さに依存しません。しかし、テキストの表示に問題があります。以下のコードを使用しています。
AlertDialog.Builder adb = new AlertDialog.Builder(getParent());
WindowManager.LayoutParams lp = new WindowManager.LayoutParams();
lp.width = WindowManager.LayoutParams.FILL_PARENT;
lp.height = WindowManager.LayoutParams.FILL_PARENT;
adb.setTitle("Alert");
adb.setCancelable(true);
adb.setNeutralButton(android.R.string.ok,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton){
}
});
adb.setMessage(ConfigClass.MSG_USER_INFO_EMPOWEREDON);
Dialog d = adb.setView(new View(this)).create();
lp.copyFrom(d.getWindow().getAttributes());
d.getWindow().setAttributes(lp);
d.show();
私が欠けているものを教えてください。