Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Android and the fly likes AlertDialog changing look of font (size, colour, align) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "AlertDialog changing look of font (size, colour, align)" Watch "AlertDialog changing look of font (size, colour, align)" New topic
Author

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

Mathew Mintalm
Ranch Hand

Joined: Feb 21, 2010
Posts: 103

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: AlertDialog changing look of font (size, colour, align)