Titanium Community Questions & Answer Archive

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

Button Back ground image issues !!!

Recently i happened to add the values for the following properties of Button.

1.backgroundImage:'1.gif'

2.backgroundSelectedImage:'2.gif'

but i don get these graphics at run time….can some one help me on this issue

— asked April 17th 2010 by Satta Ravi
  • button
  • ui
0 Comments

3 Answers

  • Are you sure that is the right path? Remember that those are supposed to be relative to the current "js file"

    — answered April 17th 2010 by Raul Riera
    permalink
    0 Comments
  • Yes ofcourse raul they are in the same folder that has the Js file.

                  *Resources
    
                  *--App.js
    
                  *--1.gif
    
                  *--2.gif
    
    — answered April 17th 2010 by Satta Ravi
    permalink
    0 Comments
  • I know it has been a long time, but maybe the gif images were not exported correctly. I would suggest saving as PNG.

    — answered February 8th 2011 by Daniel Tome
    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.