Skip to content Skip to sidebar Skip to footer

Alertdialog Changing Look Of Font (size, Colour, Align)

I'm trying to change properties of my AlertDialog inside of my game, currently I'm building it with this way: private static final int DIALOG_INFO = 1; private Dialog dialog;

Solution 1:

You can set your own contentView for AlertDialog:

.....
LayoutInflaterinflater= (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
ViewrootView= (ViewGroup) inflater.inflate(R.layout.YOUR_DIALOG_LAYOUT, null);
builder.setView(rootView);
.....

And markup your dialog layout in xml.

Post a Comment for "Alertdialog Changing Look Of Font (size, Colour, Align)"