Forums Register Login

AlertDialog changing look of font (size, colour, align)

+Pie Number of slices to send: Send
Hello, I'm trying to change properties of my AlertDialog inside of my game, currently I'm building it with this way:



And if player clicked certain button, I'm showing this dialog with this way:



Everything works, but I decided to change look of font used in this dialog, with this way:



But code works only, if I put this code after showDialog(DIALOG_INFO); which means I have to create new object (TextView textView = ...) everytime I'm showing dialog, and my question is, can't I do it only once while creating dialog?

Thanks in advance.
Those are the largest trousers in the world! Especially when next to this ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 16577 times.
Similar Threads
How to check equality of strings ?
How to handle input from a Dialog ?
Multiple AlertDialog dismiss
dalvik format error in android
How to change the TextView text dynamically
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:48:12.