「ログアウトしますか?」という質問を設定し、次にbuilder.setPositiveButtonおよびbuilder.setNegativeButtonとしてYESまたはNOを設定します。しかし、YESとNOの単語は小さすぎます。どうすればそれらを大きくすることができますか?ここでは、「ログアウト」の項目をクリックするとalertDialogがポップアップしたときに、私は私のNavigationDrawerに持っているものです。alertDialogでbuilder.setPositiveButtonとbuilder.setNegativeButtonsを大きくするにはどうすればいいですか?
ここalertDialogのためのコードは次のとおりです。
AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
builder.setCancelable(false);
builder.setTitle("Are you sure you want to Log Out?");
builder.setNegativeButton("NO", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int WhichButton) {
dialog.cancel();
}
});
builder.setPositiveButton("YES", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
}
});
builder.show();
ので、私はちょうど作るために探しています「はい」と「いいえ」という言葉が大きければ、どうすればいいですか?
独自のレイアウトを使用する必要があります – diegoveloper