に二行maxまでAlertDialog Builderを制限I次のコードを持っている:アンドロイド
AlertDialog.Builder b = new AlertDialog.Builder(MainActivity.this, R.style.AppDialogTheme); b.setTitle(R.string.opt_out_dialog_title); b.setMessage(R.string.opt_out_dialog_message); b.show();
マイ文字列:時々R.string.opt_out_dialog_message
ディスプレイ2行とダイアログ内時には三行。私はそれを制限する方法があるか2行最大にそれを修正する方法があるのだろうか?
サイズが特定の文字数を超えた場合、 '文字列' + ...は特定の2行を超えませんが、タイトル全体も表示されません。 – OBX
AlertDialogは何も提供しませんそれのためのカスタマイズ –