I am writing an Android app where I need to put bigger text on the Buttons of Dialog windows programatically.
I saw that there are two options to set (positive, negative or neutral) buttons on an AlertDialog.Builder
:
setPositiveButton(CharSequence text, DialogInterface.OnClickListener listener)
setPositiveButton(int textId, DialogInterface.OnClickListener listener)
and
In option 1, I can only set the text and in option 2, I can use resource id of the text value. But none of the options allow me to add a styled button.
Is there some other way?