Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Android Window BackgroundImage Not Appearing

$
0
0

I realize this tends to come up a fair amount but I cannot get a backgroundImage to appear on a Window element to save my life.

index.tss
"#index": {
    backgroundImage:'/someBackground.png'
}

index.xml
<Alloy>
    <Window id="index">
    </Window>
</Alloy>

index.js
$.index.open();

As a work around I can make it work by adding an ImageView in a composite layout, but that is a pretty lame workaround. At least it demonstrates the image is accessible on the device.

  • SDK 3.4.0.GA
  • CLI 3.4.0
  • Alloy 1.5.1
  • Android 4.4.2(19)
  • ti.android.fastdev = false

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>