Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Is it possible to change the transparency of an AlertDialog?

I have an AlertDialog popping up but I can see a bunch of text through it on the window behind it because the AlertDialog is just a little too transparent. I have tried changing the opacity and transparency to 1.0 but it doesn't seem change anything.

var Alert = Titanium.UI.createAlertDialog({
opacity:'1.0',
transparency: '1.0',
message:'Do you want to do this?',
buttonNames: ['OK','Cancel']
});

How can you change the transparency of an AlertDialog?

— asked May 23rd 2010 by Justice Conder
  • alertdialog
  • opacity
  • titanium.ui.createalertdialog
  • transparency
0 Comments

1 Answer

  • I don't think you can change it, it does not have an opacity property however if it is just not published you should be able to do Alert.opacity = '0.5'; and it will change. (its opacity not transparency). But like I said before I don't think you can set it.

    — answered May 24th 2010 by Brandon Reeves
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.