Select to view content in your preferred language

2.4 mobile background colour

818
2
08-19-2011 05:35 AM
philippschnetzer
Frequent Contributor
How can you set the background map colour in a mobile app?  Using 2.4 and flash builder 4.5.  As a workaround I created a large polygon that sits underneath all my other layers that I use as the background - however, the mobile app seems to override this polygon and I can only see a white background...

Thanks
Tags (2)
0 Kudos
2 Replies
philippschnetzer
Frequent Contributor
found it

opaqueBackground="0x123456"
0 Kudos
AndyGup
Esri Regular Contributor
For Flex 4.5.x mobile projects you can also set the <s:View> backgroundColor property. For example:

<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" 
  xmlns:s="library://ns.adobe.com/flex/spark"
  xmlns:esri="http://www.esri.com/2008/ags"
  backgroundColor="#C0C0C0" 
  creationComplete="creationCompleteHandler(event)"  
  title="Map App">


-Andy
Esri Developer Network (EDN)
0 Kudos