Titanium Community Questions & Answer Archive

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

Bug backgroundGradient in combination with Label / View does not work?

I want to set the backgroundGradient on a Label and View as described in documentation and seen in KitchenSink.

But both does not work for me. I'm using Titanium Mobile 1.3.0 / Android 2.1 / Ubuntu Linux as host

var view = Titanium.UI.createView({
    height: 29,
    top: 1,
    left: 1,
    right: 1,
    backgroundGradient: {
        type:'linear',
        colors:[{color:'#C8C5BC',position:0.0},{color:'#BEBAB1',position:0.50},{color:'#B2AEA6',position:1.0}]
    } 
});
— asked June 20th 2010 by Jicks Steen
0 Comments

2 Answers

  • It would appear that the Views section in the Kitchen sink application does not include the Gradients example when running on Android, only on iPhone… I'm guessing it's not support on Android?

    — answered September 1st 2010 by Rory Haddon
    permalink
    0 Comments
  • It would appear that the Views section in the Kitchen sink application does not include the Gradients example when running on Android, only on iPhone… I'm guessing it's not support on Android?

    — answered September 1st 2010 by Rory Haddon
    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.