Skip to main content
Participating Frequently
June 4, 2012
Question

ViewNavigatorApplication backgroundColor

  • June 4, 2012
  • 1 reply
  • 923 views

Hi,

I set the ViewNavigatorApplication backgroundColor to #FFFFFF (white) to show a splash image at the app start.

All the views in the app have a dark backgroundColor #444444.

The problem is when the orientation changes, the white color appears in the bottom corners causing a bad look.

How can I avoid this behavior?

I tried change the ViewNavigatorApplication backgroundColor at runtime with the command:

navigator.setstyle('backgroundColor','#444444');

but the background color did not changed.

Thanks,

Carlos.

This topic has been closed for replies.

1 reply

Participant
July 31, 2012

This way worked for me:

  <fx:Style>

  @namespace s "library://ns.adobe.com/flex/spark";

  s|ViewNavigatorApplication {

  backgroundColor: #444444;

  }

  </fx:Style>